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

:root {
  --color-primary: #f4e9f5;
  --color-secondary: #e9d8f0;
  --color-accent: #c3afcd;
  --color-light: #f4e9f5;
  --color-dark: #000000;
  --color-white: #ffffff;

  --font-primary: 'DM Sans', sans-serif;

  --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;
}


html,
body {
  max-width: 100%;
  overflow-x: hidden;
  background-color: white;
}

.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);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--color-dark);
  font-size: 15px;
  background: white;
  line-height: 1.6;
}

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: 14px;
  height: 14px;
  border: 1.3px solid rgb(182, 182, 182);
  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(3);
}






/* Guida visiva container */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  width: 1200px;
  height: 100vh;
  transform: translateX(-50%);
  /* border-left: 2px solid red;
  border-right: 2px solid red; */
  pointer-events: none;
  z-index: 99999;
}

body {
  cursor: none;
  /* nasconde il cursore di default */
}

*,
*::before,
*::after {
  cursor: none !important;
}


@media (max-width: 1200px) {
  body::before {
    display: none;
  }
}



#about,
#projects {
  scroll-margin-top: 48px;
}

#contact {
  scroll-margin-top: -20px;
}


/* -------------------------------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------------------------------- */

.navbar-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  padding: 1.5rem 2rem;
  height: auto;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #f1f1f1;
  box-shadow: none;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 0;
}


.logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-top: .5rem;
  flex: 0 0 auto;
}


.logo-img {
  transform: translateX(-30px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-dark);

  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1;
  padding: 0;
  margin: 0;

  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: filter .3s ease, color .3s ease;
}

.nav-links a:hover {
  opacity: .6;
}

.nav-links i {
  font-size: 1.4rem;
}

.globe-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  margin-top: 5px;
  align-items: center;
  justify-content: center;
  transform: translateY(.5px);
}

/* -------------------------------------------------------------------------------- */
/* HAMBURGER */
/* -------------------------------------------------------------------------------- */



/* ====================== HAMBURGER → X (Sweep & Cross, più lento e visibile) ====================== */
.header__hamburger {
  display: none;
  position: relative;
  align-self: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 25px;
  margin-left: auto;
  z-index: 15;
  cursor: pointer;
}

/* BARRE */
.header__hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 999px;
  transform-origin: center;
  will-change: transform, opacity;
  transition:
    transform .78s cubic-bezier(.16, 1, .3, 1),
    /* rallentato */
    opacity .45s ease;
}

/* ---------- ACTIVE: hamburger → X (centrale “sweep”, poi incrocio) ---------- */
.header__hamburger.active span:nth-child(2) {
  transform-origin: right;
  transform: translateX(14px) scaleX(0.05);
  opacity: 0;
  transition-duration: .60s;
  /* più lento */
  transition-delay: 0s;
}

.header__hamburger.active span:nth-child(1) {
  transform: translateX(2px) translateY(9px) rotate(45deg);
  transition-delay: .18s;
  /* ritardo più evidente */
}

.header__hamburger.active span:nth-child(3) {
  transform: translateX(2px) translateY(-9px) rotate(-45deg);
  transition-delay: .18s;
}

/* ---------- CHIUSURA: X → hamburger ---------- */
.header__hamburger:not(.active) span:nth-child(1),
.header__hamburger:not(.active) span:nth-child(3) {
  transform: translateX(0) translateY(0) rotate(0);
  transition-delay: 0s;
}

.header__hamburger:not(.active) span:nth-child(2) {
  transform-origin: right;
  transform: translateX(0) scaleX(1);
  opacity: 1;
  transition-delay: .18s;
  transition-duration: .66s;
  /* più lento */
}

/* ================== MENU RESPONSIVE (invariato) ================== */
@media (max-width:991px) {
  .navbar-transparent {
    padding: 1rem 2rem;
  }

  .header__hamburger {
    display: flex;
    position: absolute;
    top: 30px;
    right: 30px;
  }

  nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(197, 162, 198, .9);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 90px;
    padding-right: 30px;
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
    z-index: 0;
  }

  nav.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    width: auto;
    align-items: flex-end;
  }

  .nav-links li a {
    padding: .5rem 0;
    font-size: 2rem;
    color: var(--color-dark);
    text-align: right;
  }

  body.menu-open {
    overflow: hidden;
  }

  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }
}

/* motion-safe */
@media (prefers-reduced-motion: reduce) {
  .header__hamburger span {
    transition: none !important;
  }
}





/* -------------------------------------------------------------------------------- */
/* HERO */
/* -------------------------------------------------------------------------------- */
.hero {
  padding: calc(var(--space-xl) + 110px) 0 calc(var(--space-xl) + 60px);
  background: white;
  overflow-x: clip;
}



.hero-inner {
  display: flex;
  align-items: flex-end;
  gap: clamp(48px, 6vw, 96px);
  position: relative;
  isolation: isolate;
  flex-wrap: wrap;

  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}




/* TESTO */
.hero-left {
  flex: 1 1 70%;
  max-width: 1100px;
  margin-left: -30px;
}

.headline {
  font-style: normal;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  font-size: clamp(2rem, 8vw, 5em);
  margin-bottom: var(--space-m);
  max-width: 20ch;
  white-space: normal;
  word-break: normal;
}

.logo-cate {
  height: .9em;
  vertical-align: -.1em;
}

/* CTA */
.cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-left: -30px;
}

.cta .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  font-size: 1.15em;
  border-radius: 999px;
  background: #F6E9F6;
  border: 2px solid #C7AECF;
  color: var(--color-dark);
  font-weight: 600;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .12s ease;
}

.cta .pill:hover,
.cta .pill:focus-visible {
  background: #222;
  color: #fff;
  border-color: #222;
  box-shadow: var(--box-shadow);
}

/* ILLUSTRAZIONE */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: absolute;
  top: 160px;
  right: 80px;
}

.hero-right img {
  max-width: 470px;
  height: auto;
}





@media (min-width: 1218px) {

  .hero-left,
  .cta {
    margin-left: -30px;
  }
}


@media (max-width: 1263.98px) {
  .hero-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .hero-left,
  .cta {
    margin-left: 0;
  }
}






@media (max-width: 1058px) {
  .hero {
    padding: calc(var(--space-m) + 100px) 0 calc(var(--space-l) + 20px);
    overflow-x: hidden;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-left {
    margin-left: 0 !important;
    max-width: 100%;
    text-align: center;
    order: 1 !important;
  }

  .headline {
    max-width: 92%;
    text-align: center;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.15;
  }

  /* Illustrazione */
  .hero-right {
    position: static !important;
    order: 2 !important;
    width: 100%;
    margin-top: -10px;
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

  }

  .hero-right img {
    display: inline-block;
    max-width: min(500px, 95vw);
    height: auto;
  }


  .cta,
  nav.cta {
    position: static !important;
    order: 3 !important;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;

    gap: var(--space-s);
    margin: 32px 0 0 0;
    /* tolto margine sinistro */
    background: transparent !important;
    transform: none !important;
    inset: auto !important;
    z-index: 999;
  }

  .cta .pill {
    flex-shrink: 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 28px);
  }

  .cta::before,
  .cta::after {
    display: none !important;
  }


}





/* === HERO <=700px === */
@media (max-width:700px) {


  .hero .container,
  .hero-inner {
    padding-left: clamp(16px, 6vw, 24px) !important;
    padding-right: clamp(16px, 6vw, 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 100% !important;
  }


  .hero-left {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .headline {
    margin: 0 auto !important;
    text-align: center !important;
  }


  .hero-right {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero-right img {
    display: block !important;
    max-width: 85% !important;
    height: auto !important;
    margin: 0 auto !important;
  }


  .cta,
  nav.cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
  }
}








@media (max-width:700px) and (min-width:461px) {

  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 100% !important;
    padding-left: clamp(16px, 6vw, 24px) !important;
    padding-right: clamp(16px, 6vw, 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-left {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .headline {
    margin: 0 auto var(--space-m) !important;
    max-width: 22ch;
    text-align: center !important;
  }


  .hero-right {
    order: 2 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
    padding: 0 !important;
  }

  .hero-right img {
    max-width: 80% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }


  .cta,
  nav.cta {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
  }
}



/* === HERO <=700px === */
@media (max-width:700px) {
  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 100% !important;
    padding-left: clamp(16px, 6vw, 24px) !important;
    padding-right: clamp(16px, 6vw, 24px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* titolo */
  .hero-left {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .headline {
    margin: 0 auto var(--space-m) !important;
    max-width: 22ch !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  /* immagine */
  .hero-right {
    order: 2 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
    padding: 0 !important;
  }

  .hero-right img {
    max-width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .cta,
  nav.cta {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
  }
}


@media (max-width: 460px) {

  .hero-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .hero-left {
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-right {
    margin: 0 auto 16px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: static !important;
  }

  .hero-right img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 78% !important;
    height: auto !important;
  }

  .cta,
  nav.cta {
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
  }
}








/* striscia a scorrimento */

.marquee {
  width: 100%;
  overflow: hidden;
  background: #F6E9F6;
  white-space: nowrap;
  margin-top: 70px;
  padding: 12px 0;
}

.marquee-content {
  display: flex;
  animation: marquee 7s linear infinite;
}

.marquee-content span {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 400;
  color: #000000;
  padding: 0 2rem;
}

/* Animazione */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 1000px) {
  .marquee {
    margin-top: 2px;
    padding: 0px 0;
  }


  .buttons-container {
    margin-bottom: 5px;

  }
}









/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  padding-top: 100px;
  align-items: start;
  margin-bottom: 90px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



/* Colonna sinistra */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(40px);
}

.about-left img {
  width: 220px;
  height: auto;
  display: block;
}

.cv-link {
  font-weight: 400;
  margin-top: 10px;
  text-align: left;
}


.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: #F6E9F6;
  border: 2px solid #C7AECF;
  color: var(--color-dark);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .12s ease;
  margin-top: 30px;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: #222;
  color: #fff;
  border-color: #222;
  box-shadow: var(--box-shadow);
}

/* Colonna destra */
.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
  margin-left: 0;
}


.about-right h2 {
  font-size: 2.3rem;
  font-weight: 500;
  margin: 0 0 2rem;
}

/* Paragrafi separati e tipografia leggibile */
.about-right p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin: 0 0 1em;
  max-width: 34ch;
}

.highlight-purple {
  color: #c199be;
  font-weight: 600;
}

.about-left {
  position: relative;
}

.cv-image-link {
  display: inline-block;
  position: relative;
  margin-left: 100px;
  margin-top: -30px;
}

.cv-img {
  display: block;
  width: 140px;
  height: auto;
  transition: opacity 0.3s ease;
}

.cv-img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.cv-image-link:hover .cv-img.normal {
  opacity: 0;
}

.cv-image-link:hover .cv-img.hover {
  opacity: 1;
}







@media (max-width: 1058px) {
  .about-right h2 {
    font-size: clamp(2.2rem, 6.5vw, 3.2rem);
    line-height: 1.15;
  }

  .about-right p {
    font-size: clamp(1.05rem, 3.8vw, 1.35rem);
    line-height: 1.4;
  }
}


/* STEP INTERMEDIO ≤ 700px     */

@media (max-width: 700px) {
  .about-right h2 {
    font-size: clamp(2rem, 7.4vw, 2.8rem);
    line-height: 1.2;
  }

  .about-right p {
    font-size: clamp(0.98rem, 4.4vw, 1.2rem);
    line-height: 1.35;
  }
}



/* MOBILE ≤ 819px              */

@media (max-width: 819px) {
  .about {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding-top: 50px;
    padding-left: clamp(24px, 7vw, 40px);
    padding-right: clamp(24px, 7vw, 40px);
  }

  .about-right {
    order: 1;
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: none;
  }


  .about-right h2 {
    font-weight: 500;
    font-size: clamp(2rem, 6.2vw, 2.9rem);
    line-height: 1.2;
    margin: 0 0 1.6rem;
  }

  .about-right p {
    max-width: none;
    font-weight: 300;
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    line-height: 1.35;
  }

  .about-left {
    order: 2;
    transform: translateY(-10px);
    justify-content: center;
    margin-top: 30px;
  }

  .about-left img {
    margin-inline: auto;
  }
}



/* MOBILE STRETTO ≤ 460px      */

@media (max-width: 460px) {
  .about {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding-top: 40px;
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .about-right {
    order: 1;
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: none;
  }


  .about-right h2 {
    font-size: clamp(1.8rem, 7.8vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 1.4rem;
  }

  .about-right p {
    max-width: none;
    font-size: clamp(0.95rem, 4.8vw, 1.15rem);
    line-height: 1.32;
  }

  .about-left {
    order: 2;
    transform: translateY(-20px);
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
  }

  .about-left img {
    margin-inline: 0;
    max-width: 85%;
    height: auto;
  }
}


























/* ===== BACKGROUND / EXPERIENCES — 1 stella per colonna (entrambe a sinistra) ===== */
#background-skills {
  --fz-title: 2.3rem;
  --star-w: 56px;
  --star-gap: 18px;
  --star-top: 8px;
  --right-nudge: 0px;
  --section-down: 180px;
  margin-top: var(--section-down);
}


.container.cv-container {
  padding-left: 0;
  padding-right: 0;
}


.cv-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  align-items: center;
  margin-bottom: 65px;
}

.cv-title {
  margin: 0;
  font-size: var(--fz-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}


.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  align-items: start;
}


.cv-deco,
.cv-deco-svg {
  display: none !important;
}


.cv-col {
  position: relative;
  padding-left: calc(var(--star-w) + var(--star-gap));
}


.cv-col--right {
  padding-right: 0;
  transform: none;
}


.cv-star {
  position: absolute;
  top: var(--star-top);
  left: 0;
  width: var(--star-w);
  height: auto;
  display: block;
  pointer-events: none;
}

/* timeline */
.cv-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 44px;
}

.cv-item {
  position: relative;
  padding-left: 0;
  border-left: 0;
}

.cv-item::before,
.cv-item::after {
  content: none;
}

/* testo */
.cv-period {
  margin: 0 0 6px;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.cv-role {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 650;
  line-height: 1.15;
}

.cv-meta {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
}



/* ===== MQ @1258px ===== */
@media (max-width: 1218px) {
  #background-skills {
    --content-l: var(--page-gutter, clamp(28px, 5.5vw, 56px));
    padding-left: var(--content-l);
    padding-right: var(--content-l);
    --section-down: 110px;
    margin-top: var(--section-down);
    --fz-title: 2.5rem;
  }


  #background-skills .cv-col,
  #background-skills .cv-col--right {
    margin-top: clamp(16px, 2vw, 36px);
  }


  #background-skills .cv-col--right {
    padding-right: 0;
    transform: none;
    margin-left: 0;
  }

  #background-skills .cv-period {
    font-size: 1.02rem;
  }

  #background-skills .cv-role {
    font-size: clamp(1.16rem, 1.9vw, 1.55rem);
  }

  #background-skills .cv-meta {
    font-size: 1.08rem;
  }
}





@media (max-width: 819px) {
  #background-skills {
    --content-l: var(--page-gutter, clamp(24px, 6vw, 48px));
    --guard-r: 72px;
    padding-left: var(--content-l);
    padding-right: var(--guard-r);
    --section-down: -8px;
    margin-top: var(--section-down);
    --fz-title: 2.6rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head-left"
      "col-left"
      "head-right"
      "col-right";
    row-gap: 12px;


    --section-split: clamp(56px, 9vw, 112px);
  }


  #background-skills .cv-head,
  #background-skills .cv-grid {
    display: contents;
  }


  #background-skills .cv-head .cv-title {
    margin: 0 0 22px;
    max-width: calc(100vw - var(--content-l) - var(--guard-r));
    line-height: 1.08;
  }

  #background-skills .cv-col {
    grid-area: col-left;
  }

  #background-skills .cv-col--right {
    grid-area: col-right;
  }


  #background-skills .cv-col,
  #background-skills .cv-col--right {
    grid-column: 1 / -1;
    padding-left: calc(var(--star-w) + var(--star-gap));
    padding-right: 0;
    transform: none;
    margin-left: 0;
  }


  #background-skills .cv-col {
    margin-bottom: var(--section-split);
  }

  #background-skills .cv-col--right {
    margin-bottom: 0;
  }


  #background-skills .cv-period {
    font-size: 1.08rem;
  }

  #background-skills .cv-role {
    font-size: clamp(1.22rem, 3.1vw, 1.62rem);
  }

  #background-skills .cv-meta {
    font-size: 1.1rem;
  }


  #background-skills .cv-star {
    left: 0;
  }
}



@media (max-width:460px) {


  .hero-right {
    position: static !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    margin-top: -25px !important;
    padding-left: 16px !important;
  }

  .hero-right img {
    max-width: 80% !important;
    height: auto !important;
  }

  /* CTA in colonna centrata */
  .cta,
  nav.cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 16px !important;
    padding: 0 16px !important;
    width: 100% !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 280px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }

  #background-skills {
    --fz-title: 2.2rem;
  }

  #background-skills .cv-period {
    font-size: 1rem;
  }

  #background-skills .cv-role {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  }

  #background-skills .cv-meta {
    font-size: 1rem;
  }
}


@media (max-width:460px) {


  .hero-right {
    position: static !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    margin-top: -14px !important;
    padding-left: 12px !important;
  }

  .hero-right img {
    max-width: 80% !important;
    height: auto !important;
  }

  /* CTA in colonna centrata */
  .cta,
  nav.cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding: 0 12px !important;
    width: 100% !important;
  }

  .cta .pill {
    width: 100% !important;
    max-width: 280px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }


  #background-skills {
    --fz-title: 2.2rem;
  }

  #background-skills .cv-period {
    font-size: 1rem;
    margin-bottom: 2px !important;
  }

  #background-skills .cv-role {
    font-size: clamp(1.1rem, 2.8vw, 1.38rem);
  }

  #background-skills .cv-meta {
    font-size: 1rem;
    margin-top: 2px !important;
  }

  #background-skills .cv-col--right .cv-grid>*+* {
    margin-top: 12px !important;
  }

  #background-skills .cv-star {
    height: calc(100% - 8px) !important;
  }
}





















/* ===== SOFTWARE icone programmi ===== */

.section-software {
  --softw-size: clamp(56px, 7.2vw, 84px);
  --softw-gap-y: 46px;
  padding-block: clamp(24px, 5vw, 48px);
  color: var(--softw-text, #000);
  margin-top: 50px;
}


.section-software .softw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.softw-title {
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 50px;
  line-height: 1.1;
}


.software-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: var(--softw-size);
  row-gap: var(--softw-gap-y);
  align-items: center;
  justify-items: center;
}

.software-item {
  width: var(--softw-size);
  height: var(--softw-size);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.software-item img {
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
  display: block;
}


.software-item::before {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px);
  font-size: 1rem;
  font-weight: 600;
  color: #c7aecf;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.software-item:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}


@media (min-width:1219px) {
  .section-software .softw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .softw-title,
  .software-grid {
    margin-left: -30px;
  }
}


@media (max-width:1218.98px) {
  .section-software .softw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .softw-title,
  .software-grid {
    margin-left: 0;
  }
}

/* =================================================================== */
/*  █ VISIBILITÀ: due sezioni nello stesso HTML                        */
/*     - .skills-flat    = griglia “piena” (12 icone) — DESKTOP        */
/*     - .skills-grouped = gruppi con titoli        — MOBILE           */
/* =================================================================== */

.section-software.skills-flat {
  display: block;
}

.section-software.skills-grouped {
  display: none;
}







@media (max-width:760px) {
  .section-software.skills-flat {
    display: none !important;
  }

  .section-software.skills-grouped {
    display: block !important;
  }

  .section-software.skills-grouped .software-item::before {
    content: none !important;
  }

  .section-software.skills-grouped {
    --softw-size: clamp(78px, 13vw, 96px);
    --softw-gap-y: 20px;
    margin-top: 30px;
  }

  .section-software.skills-grouped .softw-group {
    margin: 22px 0 10px;
  }

  .section-software.skills-grouped .softw-group-title {
    display: block;
    margin: 10px 0 12px;
    font-size: clamp(14px, 3.8vw, 18px);
    font-weight: 600;
    color: #c7aecf;
    letter-spacing: .2px;
  }

  .section-software.skills-grouped .software-grid {
    --gap-x: 14px;
    --gap-y: 20px;
    margin: 0;
    padding: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    column-gap: var(--gap-x);
    row-gap: var(--gap-y);
    grid-template-columns: repeat(5, minmax(60px, 1fr));
  }

  .section-software.skills-grouped .software-item {
    width: var(--softw-size);
    height: var(--softw-size);
    display: grid;
    place-items: center;
  }

  .section-software.skills-grouped .software-item img {
    width: 82%;
    max-width: 82%;
    height: auto;
    display: block;
  }
}








@media (max-width:991px) {
  .section-software.skills-flat {
    display: none !important;
  }

  .section-software.skills-grouped {
    display: block !important;
  }

  .section-software.skills-grouped .software-item::before {
    content: none !important;
  }

  .section-software.skills-grouped {
    --softw-size: clamp(90px, 14vw, 110px);
    --softw-gap-y: 26px;
    margin-top: 35px;
    margin-bottom: -28px;
  }

  .section-software.skills-grouped .softw-group {
    margin: 24px 0 14px;
  }

  .section-software.skills-grouped .softw-group-title {
    display: block;
    margin: 12px 0 14px;
    font-size: clamp(15px, 3.2vw, 20px);
    font-weight: 600;
    color: #c7aecf;
    letter-spacing: .2px;
  }

  .section-software.skills-grouped .software-grid {
    --gap-x: 18px;
    --gap-y: 24px;
    margin: 0;
    padding: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    column-gap: var(--gap-x);
    row-gap: var(--gap-y);
    grid-template-columns: repeat(5, minmax(70px, 1fr));
  }

  .section-software.skills-grouped .software-item {
    width: var(--softw-size);
    height: var(--softw-size);
    display: grid;
    place-items: center;
  }

  .section-software.skills-grouped .software-item img {
    width: 88%;
    max-width: 88%;
    height: auto;
    display: block;
  }
}





@media (max-width:460px) {
  .section-software.skills-flat {
    display: none !important;
  }

  .section-software.skills-grouped {
    display: block !important;
    --softw-size: clamp(68px, 16vw, 80px);
    --softw-gap-y: 16px;
    margin-top: 24px;
    margin-bottom: -20px;
  }

  .section-software.skills-grouped .software-item::before {
    content: none !important;
  }

  .section-software.skills-grouped .softw-group {
    margin: 18px 0 8px;
  }

  .section-software.skills-grouped .softw-group-title {
    display: block;
    margin: 8px 0 10px;
    font-size: clamp(13px, 4vw, 16px);
    font-weight: 600;
    color: #c7aecf;
    letter-spacing: .2px;
  }

  .section-software.skills-grouped .software-grid {
    --gap-x: 10px;
    --gap-y: 16px;
    margin: 0;
    padding: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    column-gap: var(--gap-x);
    row-gap: var(--gap-y);
    grid-template-columns: repeat(4, minmax(50px, 1fr));
  }

  .section-software.skills-grouped .software-item {
    width: var(--softw-size);
    height: var(--softw-size);
    display: grid;
    place-items: center;
  }

  .section-software.skills-grouped .software-item img {
    width: 80%;
    max-width: 80%;
    height: auto;
    display: block;
  }
}


































/* MENU LAVORI */

.projects-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
  position: relative;
  margin-bottom: 50px;
}

.projects-title {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
  color: #000000;
}

/* === Layout con allineamento alla baseline === */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1fr;
  align-items: baseline;
  padding: 28px 0;
  position: relative;
  gap: 24px;
  border-top: 1px solid #999;
}


.project:first-of-type {
  border-top: none;
}

.project:last-child {
  border-bottom: 1px solid #999;
}

/* Nome progetto a sinistra */
.project-name {
  justify-self: start;
  font-size: 3em;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  transition: filter 0.4s ease;
}

/* Effetto blur al passaggio */
.project:hover .project-name {
  filter: blur(3px);
}


.project-meta {
  justify-self: start;
  text-align: left !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin: 0;
  line-height: 1;
}


/* Numero a destra */
.project-number {
  justify-self: end;
  font-size: 32px;
  font-family: monospace;
  margin: 0;
  line-height: 1;
}

/* === Immagine flottante === */
.hover-image {
  position: absolute;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) rotate(15deg) scale(0.94);
  transition: opacity 420ms cubic-bezier(.22, .61, .36, 1),
    transform 420ms cubic-bezier(.22, .61, .36, 1);
  z-index: 10;
  margin-left: -150px;
  border-radius: 20px;
}

.hover-image.active {
  transform: translateY(0) rotate(6deg) scale(1);
  opacity: 1;
}

#background-skills {
  --fz-title: 2.3rem;
  /* fisso */
}

.cv-title {
  margin: 0 0 var(--title-gap) 0;
  font-size: var(--fz-title);
  font-weight: 500;
  letter-spacing: .01em;
}


#background-skills .cv-col .cv-title {
  font-size: var(--fz-title) !important;
  font-weight: 500 !important;
}



#projects {
  scroll-margin-top: 100px;
}









@media (max-width:1218.98px) {
  .projects-wrapper {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .projects-title,
  .project {
    margin-left: 0;
  }
}









@media (max-width:760px) {

  .project {
    display: grid;
    grid-template-columns: 1fr min(28vw, 120px);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "name   thumb"
      "meta   thumb"
      "number thumb";
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    padding: 12px 0;
    border-top: 1px solid #999;
  }

  .project-name {
    grid-area: name;
    font-size: 1.82em;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    transform: translateY(2px);
    filter: none !important;
    /* sempre nitido */
  }

  .project-meta {
    grid-area: meta;
    font-size: .8em;
    font-weight: 400;
    margin: 1px 0 0 0;
    line-height: 1.02;
    display: block;
  }

  .project-number {
    grid-area: number;
    font-size: .79em;
    font-weight: 500;
    margin: 1px 0 0 0;
    line-height: 1;
    justify-self: start;
    transform: translateY(-2px);
    text-align: left;
  }


  .projects .project .hover-image {
    grid-area: thumb;
    position: static;
    justify-self: end;
    align-self: center;
    width: min(26vw, 110px);
    height: min(26vw, 110px);
    margin: 0;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
    z-index: 0;
    filter: none !important;
  }

  .project+.hover-image {
    display: none !important;
  }


  .projects .project:hover .hover-image,
  .projects .project:hover+.hover-image,
  .projects .project:focus .hover-image,
  .projects .project:focus+.hover-image {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }


  .projects .project:hover .project-name,
  .projects .project:focus .project-name {
    filter: none !important;
  }
}







/* visualizzazione media query */

@media (max-width:991px) {

  .project {
    display: grid;
    grid-template-columns: 1fr min(24vw, 140px);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "name   thumb"
      "meta   thumb"
      "number thumb";
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
    padding: 14px 0;
    border-top: 1px solid #999;
  }

  .projects-title {
    margin-bottom: 30px;
  }

  .project-name {
    grid-area: name;
    font-size: 2.2em;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    transform: translateY(2px);
    filter: none !important;
  }

  .project-meta {
    grid-area: meta;
    font-size: 1.05em;
    font-weight: 400;
    margin: 4px 0 0 0;
    line-height: 1.08;
    display: block;
  }

  .project-number {
    grid-area: number;
    font-size: 1em;
    font-weight: 500;
    margin: 4px 0 0 0;
    line-height: 1;
    justify-self: start;
    transform: translateY(-2px);
    text-align: left;
  }


  .projects .project .hover-image {
    grid-area: thumb;
    position: static;
    justify-self: end;
    align-self: center;
    width: min(24vw, 140px);
    height: min(24vw, 140px);
    margin: 0;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
    z-index: 0;
    filter: none !important;
  }

  .project+.hover-image {
    display: none !important;
  }


  .projects .project:hover .hover-image,
  .projects .project:hover+.hover-image,
  .projects .project:focus .hover-image,
  .projects .project:focus+.hover-image {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }


  .projects .project:hover .project-name,
  .projects .project:focus .project-name {
    filter: none !important;
  }
}



@media (max-width:460px) {


  .projects {
    margin-top: -15px;
    margin-bottom: -50px;
  }

  .project {
    display: grid;
    grid-template-columns: 1fr min(30vw, 100px);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "name   thumb"
      "meta   thumb"
      "number thumb";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding: 10px 0;
    border-top: 1px solid #999;
  }

  .project-name {
    grid-area: name;
    font-size: 1.7em;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    transform: translateY(1px);
    filter: none !important;
  }

  .project-meta {
    grid-area: meta;
    font-size: 0.82em;
    font-weight: 400;
    margin: 1px 0 0 0;
    line-height: 1.02;
    display: block;
  }

  .project-number {
    grid-area: number;
    font-size: 0.8em;
    font-weight: 500;
    margin: 0;
    line-height: 1;
    justify-self: start;
    transform: translateY(-1px);
    text-align: left;
  }

  .projects .project .hover-image {
    grid-area: thumb;
    position: static;
    justify-self: end;
    align-self: center;
    width: min(30vw, 100px);
    height: min(30vw, 100px);
    margin: 0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
    z-index: 0;
    filter: none !important;
  }

  .project+.hover-image {
    display: none !important;
  }

  .projects .project:hover .hover-image,
  .projects .project:hover+.hover-image,
  .projects .project:focus .hover-image,
  .projects .project:focus+.hover-image {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .projects .project:hover .project-name,
  .projects .project:focus .project-name {
    filter: none !important;
  }
}



















/* ===== CONTACT CTA ===== */

.contact-cta {
  background: #edd7f2;
  color: #000;
  padding: clamp(16px, 4vw, 36px) 0;
}

.contact-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(16px, 5vw, 100px);
  padding-right: clamp(16px, 5vw, 100px);
}

.contact-cta__row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(16px, 4vw, 48px);
  row-gap: clamp(6px, 1.2vw, 14px);
  align-items: center;
}

.contact-cta__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  line-height: 1.08;
}

.contact-cta__title {
  margin: 0;
  font-size: 5rem;
  line-height: 1;
  font-weight: 500;
}

.contact-cta__btn {
  align-self: center;
  justify-self: end;
  inline-size: clamp(44px, 5vw, 56px);
  block-size: clamp(44px, 5vw, 56px);
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #000;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease;
}

.contact-cta__btn:hover {
  transform: translate(4px, -4px);
  background: transparent;
}

.contact-cta__arrow {
  width: 150%;
  height: 150%;
}




/* allineamento alle linee rosse come altre sezioni */
@media (min-width:1219px) {
  .contact-cta__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contact-cta__row {
    margin-left: -30px;
    width: calc(100% + 60px);
    grid-template-columns: 1fr auto;
  }
}


@media (max-width:1218.98px) {
  .contact-cta__row {
    margin-left: 0;
    width: 100%;
  }
}



@media (max-width:700px) {
  .contact-cta__row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .contact-cta__title {
    font-size: clamp(40px, 12vw, 72px);
  }

  .contact-cta__btn {
    justify-self: end;
  }
}




.contact-cta+.back-to-top {
  margin-top: 16px !important;
  inline-size: 48px;
  block-size: 48px;
}



/* ===== MODAL ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  padding: 10px;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(197, 162, 198, 0.8);
  z-index: 0;
}

.contact-modal__dialog {
  position: relative;
  width: min(760px, 92vw);
  background: #fff;
  color: #000;
  border-radius: 16px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, .25);
  padding: clamp(20px, 4vw, 28px);
  padding-bottom: 10px;
  transform: translateY(8px) scale(.98);
  transition: transform .22s ease;
  z-index: 1;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(88svh, 720px);
}

.contact-modal.is-open .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  z-index: 5;
  padding: 0;
  cursor: pointer;
}

.contact-modal__title {
  margin: 8px 0 6px;
  font-size: 2.3em;
  font-weight: 700;
}

.contact-modal__lead {
  margin: 0 0 16px;
  opacity: .85;
  font-size: 1.6em;
}

.contact-form {
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin: 0;
}

.cf-row {
  display: grid;
  gap: 2px;
  margin: 0;
}

.cf-label {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0;
}

.cf-input,
.cf-textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #C7AECF;
  padding: 6px 4px 8px;
  font: inherit;
  background: transparent;
  resize: none;
  transition: border-color .15s ease;
}

.cf-input:focus,
.cf-textarea:focus {
  outline: none;
  border-bottom-color: #B48FD0;
}

.cf-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  margin: 6px 0 6px;
  line-height: 1.25;
}

.cf-privacy a {
  color: #c7aecf;
  text-decoration: underline;
}

.cf-privacy input {
  margin: 0 6px 0 0;
}

.cf-submit {
  margin-top: 6px;
  margin-bottom: 0;
  align-self: start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #C7AECF;
  background: #F6E9F6;
  font-weight: 700;
  transition: transform .15s ease, background .2s ease;
  width: 100%;
}

.cf-submit:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
  border-color: #000;
}

.contact-modal__close .icon-x {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-modal__close .icon-x path {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-modal__close:hover {
  background: transparent;
}

.contact-modal__close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}









/* ============== MEDIA QUERY ============== */

/* Tablet medio ↓ */
@media (max-width: 900px) {
  .contact-modal__dialog {
    width: min(680px, calc(100vw - 20px));
    max-height: min(88vh, 680px);
    border-radius: 14px;
  }

  .contact-modal__close {
    inline-size: 36px;
    block-size: 36px;
  }

  .contact-modal__close .icon-x {
    width: 18px;
    height: 18px;
  }
}

/* Tablet piccolo / phablet ↓ */
@media (max-width: 700px) {
  .contact-modal {
    padding: 20px;
  }

  .contact-modal__dialog {
    width: min(560px, calc(100vw - 16px));
    max-height: min(90vh, 630px);
    padding: clamp(18px, 4.5vw, -28px);
  }

  .contact-modal__title {
    font-size: clamp(22px, 6vw, 30px);
  }

  .contact-modal__lead {
    font-size: clamp(15px, 4.6vw, 19px);
  }

  .cf-textarea {
    min-height: 110px;
  }
}


/* Mobile stretto ↓ */
@media (max-width: 460px) {
  .contact-modal {
    padding: 6px;
  }

  .contact-modal__dialog {
    width: calc(100vw - 12px);
    max-height: calc(100svh - 12px);
    border-radius: 12px;
    padding: 16px;
  }

  .contact-modal__title {
    font-size: clamp(20px, 7.2vw, 26px);
  }

  .contact-modal__lead {
    font-size: clamp(14px, 4.8vw, 18px);
  }

  .contact-modal__close {
    top: 8px;
    right: 8px;
    inline-size: 32px;
    block-size: 32px;
    border-width: 2px;
  }

  .contact-modal__close .icon-x {
    width: 16px;
    height: 16px;
  }

  .cf-input,
  .cf-textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .cf-textarea {
    min-height: 100px;
  }

  .cf-privacy {
    gap: 8px;
  }

  .cf-submit {
    padding: 10px 16px;
  }
}

/* Motion safe */
@media (prefers-reduced-motion: reduce) {

  .contact-modal,
  .contact-modal__dialog {
    transition: none !important;
  }
}


.contact-modal__dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(88svh, 720px);
}


.contact-form {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}


.cf-submit {
  margin-bottom: 2px;
}

/* --- Altezza media: < 740px --- */
@media (max-height: 740px) {
  .contact-modal__dialog {
    max-height: calc(100svh - 12px);
    padding: clamp(16px, 3.6vw, 28px);
  }

  .contact-modal__title {
    font-size: clamp(22px, 5.6vw, 28px);
  }

  .contact-modal__lead {
    font-size: clamp(15px, 3.8vw, 18px);
  }

  .cf-input,
  .cf-textarea {
    min-height: 42px;
  }

  .cf-textarea {
    min-height: 96px;
  }
}


/* --- Altezza ridotta: < 640px --- */
@media (max-height: 640px) {
  .contact-modal__dialog {
    padding: 14px;
    border-radius: 12px;
  }

  .contact-modal__title {
    font-size: clamp(20px, 5.2vw, 26px);
  }

  .contact-modal__lead {
    font-size: clamp(14px, 3.6vw, 17px);
  }

  .cf-label {
    font-size: clamp(11px, 2.6vw, 13px);
  }

  .cf-input,
  .cf-textarea {
    font-size: 16px;
    min-height: 40px;
  }

  .cf-textarea {
    min-height: 90px;
  }

  .cf-privacy {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .contact-modal__close {
    inline-size: 32px;
    block-size: 32px;
  }

  .contact-modal__close .icon-x {
    width: 16px;
    height: 16px;
  }
}



@media (prefers-reduced-motion: reduce) {
  .contact-modal__dialog {
    transition: none !important;
  }
}



.cf-input::placeholder,
.cf-textarea::placeholder {
  color: #888;
  font-style: italic;
  opacity: 1;
}







/* ---- spazio più equilibrato sotto al bottone ---- */
.contact-modal__dialog {
  padding-block-end: 34px !important;
}

.contact-form {
  gap: 10px !important;
  padding-bottom: 0 !important;
}

.cf-privacy {
  margin: 4px 0 6px !important;
  line-height: 1.25;
}

.cf-submit {
  margin-block: 8px 6px !important;
  padding: 11px 18px;
}


.contact-form .cf-status {
  display: none !important;
}

@media (max-width: 900px) {
  .contact-modal__dialog {
    padding-block-end: 28px !important;
  }

  .cf-submit {
    margin-block-end: 14px !important;
  }
}

/* ≤ 700px */
@media (max-width: 700px) {
  .contact-modal__dialog {
    padding-block-end: 24px !important;
  }

  .cf-submit {
    margin-block-end: 16px !important;
  }
}

/* ≤ 460px */
@media (max-width: 460px) {
  .contact-modal__dialog {
    padding-block-end: 18px !important;
  }

  .cf-submit {
    margin-block-end: 14px !important;
    padding: 10px 16px;
  }
}


/* altezza ≤ 740px */
@media (max-height: 740px) {
  .contact-modal__dialog {
    padding-block-end: 16px !important;
  }

  .cf-submit {
    margin-block-end: 12px !important;
  }
}

/* altezza ≤ 640px */
@media (max-height: 640px) {
  .contact-modal__dialog {
    padding-block-end: 12px !important;
  }

  .cf-submit {
    margin-block-end: 10px !important;
  }
}


.contact-form {
  padding-bottom: 0 !important;
}













/* ===== Footer ===== */


.site-footer {
  background: #f6e8f6;
  color: #000;
  font-size: 1.05rem;
}

.site-footer .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.site-footer .footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px) 0 20px;
  align-items: start;
}

/* colonne */
.site-footer .footer__title {
  margin: -4px 0 4px;
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer .footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer__list a {
  display: inline-block;
  padding: .3rem 0;
  color: inherit;
  font-size: 1.12rem;
  text-decoration: none;
  transition: opacity .25s ease;
}

.site-footer .footer__list a:hover {
  opacity: .6;
}

/* brand */
.site-footer .footer__col--brand .footer__logo {
  width: 120px;
  height: auto;
  margin-bottom: 1px;
}

.site-footer .footer__role {
  margin: .3rem 0 1rem;
  font-weight: 500;
  font-size: 1.15rem;
}

.site-footer .footer__link {
  display: block;
  margin: .2rem 0;
  color: inherit;
  font-size: 1.05rem;
  text-decoration: none;
}

.site-footer .footer__place {
  margin: .3rem 0 2rem;
  font-size: 1.05rem;
}

.site-footer .footer__social {
  display: flex;
  gap: 10px;
  margin-top: .8rem;
}

.site-footer .footer__social a {
  width: 48px;
  height: 48px;
  display: grid;
}

.site-footer .footer__social img {
  width: 32px;
  height: 32px;
}

/* separatore & bottom */
.site-footer .footer__rule {
  border: 0;
  border-top: 1px solid #000;
  margin-top: clamp(18px, 3vw, 30px);
}

.site-footer .footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 52px;
  font-size: 1rem;
}

.site-footer .footer__languages a {
  color: inherit;
  text-decoration: none;
  transition: opacity .25s ease;
}

.site-footer .footer__languages a:hover {
  opacity: .6;
}


/* ≥1219px: nudge -30px come il logo */
@media (min-width:1219px) {
  .site-footer .footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-footer .footer__grid,
  .site-footer .footer__bottom {
    margin-left: -30px;
  }


  .site-footer .footer__title {
    font-size: 1.28rem;
  }

  .site-footer .footer__list a,
  .site-footer .footer__link,
  .site-footer .footer__place,
  .site-footer .footer__role {
    font-size: 1.2rem;
  }

  .site-footer .footer__bottom {
    font-size: 1.05rem;
  }
}




@media (max-width:1218.98px) and (min-width:992px) {
  .site-footer .footer__inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .site-footer .footer__grid,
  .site-footer .footer__bottom {
    margin-left: 0;
  }

  .site-footer .footer__title {
    font-size: 1.25rem;
  }

  .site-footer .footer__list a,
  .site-footer .footer__link,
  .site-footer .footer__place,
  .site-footer .footer__role {
    font-size: 1.15rem;
  }

  .site-footer .footer__bottom {
    font-size: 1rem;
  }
}

/* ≤991px: layout 2×2 */
@media (max-width:991px) {


  .site-footer nav {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
  }

  .site-footer .footer__inner {
    padding-left: clamp(16px, 6vw, 60px);
    padding-right: clamp(16px, 6vw, 60px);
  }

  .site-footer .footer__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand  quick"
      "latest legal";
    column-gap: clamp(16px, 4vw, 36px);
    row-gap: 28px;
    margin-left: 0;
  }

  .site-footer .footer__col--brand {
    grid-area: brand;
  }

  .site-footer .footer__col--quick {
    grid-area: quick;
  }

  .site-footer .footer__col--latest {
    grid-area: latest;
  }

  .site-footer .footer__col--legal {
    grid-area: legal;
  }

  /* testi un filo più grandi anche qui */
  .site-footer .footer__title {
    font-size: 1.2rem;
  }

  .site-footer .footer__list a,
  .site-footer .footer__link,
  .site-footer .footer__place,
  .site-footer .footer__role {
    font-size: 1.1rem;
  }

  .site-footer .footer__bottom {
    font-size: .95rem;
  }
}

/* ≤460px: 1 colonna */
@media (max-width:460px) {
  .site-footer .footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer .footer__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand" "quick" "latest" "legal";
    row-gap: 24px;
  }

  .site-footer .footer__title {
    font-size: 1.05rem;
  }

  .site-footer .footer__list a,
  .site-footer .footer__link,
  .site-footer .footer__place {
    font-size: 1rem;
  }

  .site-footer .footer__role {
    font-size: 1.02rem;
  }

  .site-footer .footer__bottom {
    font-size: .95rem;
    padding: 10px 0 28px;
  }
}



@media (min-width:1219px) {

  .site-footer .footer__rule,
  .site-footer .footer__bottom {
    margin-left: -30px;
    width: calc(100% + 60px);
  }
}



@media (max-width:1218.98px) {

  .site-footer .footer__rule,
  .site-footer .footer__bottom {
    margin-left: 0;
    width: 100%;
  }
}







/* Stile base */

.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .2s;
  z-index: 1000;
}

.back-to-top svg {
  stroke: #000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width:1388px) {
  .back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
  }

  @media (hover:hover) {
    .back-to-top:hover {
      transform: translateY(-3px);
    }
  }
}


/* Mobile ≤1387px → sopra la linea del footer */
@media (max-width:1387px) {
  .back-to-top {
    position: fixed;
    right: 16px;
    bottom: 100px;
    width: 44px;
    height: 44px;
  }
}
















































/* -------------------------------------------------------------------------------- */
/* ! Parole mangiate */
/* -------------------------------------------------------------------------------- */

.hero-parolemangiate {
  padding: calc(var(--space-xl) + 90px) 0 var(--space-xl);
  background: #fff;
}

.parolemangiate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.parolemangiate-left {
  padding-right: 2rem;
}


.parolemangiate-right {
  padding-left: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  align-content: start;
  margin-top: 90px;
}


.parolemangiate-right .info-block--main {
  grid-column: 1;
  grid-row: 1;
}

.parolemangiate-right .info-block--team {
  grid-column: 1;
  grid-row: 2;
}

.parolemangiate-right .info-block--softwares {
  grid-column: 2;
  grid-row: 1;
}

.parolemangiate-right .info-block--deliverables {
  grid-column: 2;
  grid-row: 2;
}


.parolemangiate-headline {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 36px;
  font-weight: 500;
  color: #000;
  letter-spacing: .5px;
  font-style: normal;
}


.parolemangiate-left p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin-bottom: 18px;
}


.info-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: #000;
}

.info-block p {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1px 0;
  color: #000;
  line-height: 1.6em;
}


/* 992–1218.98px */

@media (max-width:1218.98px) and (min-width:992px) {
  .hero-parolemangiate {
    padding: calc(var(--space-xl) + 80px) 0 var(--space-xl);
    /* +10px */
  }

  .parolemangiate-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .parolemangiate-right {
    margin-top: 80px;
  }
}



/* 820–991px — tablet        */

@media (max-width:991px) and (min-width:820px) {
  .hero-parolemangiate {
    padding: calc(var(--space-xl) + 70px) 0 var(--space-xl);
  }

  .parolemangiate-inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .parolemangiate-right {
    margin-top: 70px;
    gap: 14px 32px;
  }
}





/* ≤819px  */

@media (max-width:819px) {
  .hero-parolemangiate {
    padding: calc(var(--space-xl) + 60px) 0 var(--space-l);
  }

  .parolemangiate-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .parolemangiate-right {
    margin-top: 50px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 4vw, 22px) clamp(18px, 4vw, 26px);
    justify-items: start;
    text-align: left;
    margin-left: -30px;
    width: calc(100% + 4px);
  }
}



/* ≤560px */

@media (max-width:560px) {
  .hero-parolemangiate {
    padding: calc(var(--space-xl) + 50px) 0 var(--space-l);
  }

  .parolemangiate-inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .parolemangiate-right {
    margin-top: 40px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 4vw, 20px) clamp(14px, 4vw, 22px);
  }

  .parolemangiate-headline {
    font-size: 1.9rem;
  }

  .parolemangiate-left p {
    font-size: 1.4em;
  }

  .info-block h3 {
    font-size: 1.1rem;
  }

  .info-block p {
    font-size: 1rem;
  }
}



/* ≤360px */

@media (max-width:360px) {
  .hero-parolemangiate {
    padding: calc(var(--space-xl) + 40px) 0 var(--space-m);

  }

  .parolemangiate-inner {
    --gutter: clamp(12px, 5vw, 16px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    row-gap: 8px;
  }

  .parolemangiate-right {
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .parolemangiate-headline {
    font-size: 1.7rem;
  }

  .parolemangiate-left p {
    font-size: 1.3em;
  }

  .info-block h3 {
    font-size: 1rem;
  }

  .info-block p {
    font-size: 0.95rem;
  }
}










/* ========================= */
/* LOGO PAROLE MANGIATE      */
/* ========================= */
.logo-parolemangiate {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 20px 0;
  background: #fff;
}

.logo-parolemangiate__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}


.logo-parolemangiate-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  justify-items: start;
}

.logo-parolemangiate-sample {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}

.logo-parolemangiate-sample figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.logo-parolemangiate-sample img {
  flex: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 160px;
}


.logo-parolemangiate-final {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo-parolemangiate-final__title {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.logo-parolemangiate-final__frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-parolemangiate-final__frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 360px;
}






/* ≥1219px */
@media (min-width:1219px) {
  .logo-parolemangiate {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .logo-parolemangiate-left {
    margin-left: -30px;
    width: calc(100% + 30px);
  }
}

/* 992–1218.98px */
@media (max-width:1218.98px) and (min-width:992px) {
  .logo-parolemangiate {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .logo-parolemangiate-left {
    margin-left: 0;
    width: 100%;
  }
}



/* 820–991px  */
@media (max-width:991px) and (min-width:820px) {
  .logo-parolemangiate {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .logo-parolemangiate__grid {
    gap: clamp(20px, 4vw, 32px);
  }

  .logo-parolemangiate-left {
    gap: clamp(12px, 3vw, 20px);
  }
}

/* 361–819px */
@media (max-width:819px) and (min-width:361px) {
  .logo-parolemangiate {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }


}


/* ≤369px */
@media (max-width:369px) {
  .logo-parolemangiate {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
  }

  .logo-parolemangiate-left {
    gap: 10px;
  }

  .logo-parolemangiate-sample img {
    max-height: clamp(84px, 22vw, 120px);
  }

  .logo-parolemangiate-final__frame img {
    max-height: clamp(160px, 44vw, 220px);
  }

  .logo-parolemangiate-final__title {
    font-size: clamp(0.7rem, 3.2vw, 0.85rem);
  }

  .logo-parolemangiate-sample figcaption {
    font-size: clamp(0.68rem, 3vw, 0.8rem);
  }
}






.parolemangiate-left {
  padding-right: 2rem;
}

.parolemangiate-right {
  padding-left: 2rem;
}



@media (max-width:360px) {
  .parolemangiate-right {
    padding-left: 0;
  }
}



























/* ========================= */
/* MAGAZINE
/* ========================= */

.magazine {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter-lg, clamp(24px, 7vw, 40px));
  padding-right: var(--gutter-lg, clamp(24px, 7vw, 40px));
  padding-top: calc(var(--space-xl, 48px) + 40px);
  padding-bottom: var(--space-xl, 48px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 6vw, 64px);
  align-items: start;
}


.magazine-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 24px);
  align-content: start;

  margin-left: calc(-1 * var(--gutter-lg, clamp(24px, 7vw, 40px)));
}

.magazine-left .cover {
  margin: 0;
}

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



.magazine-right {
  align-self: start;
}

.magazine-right h2 {
  display: none;
}


.magazine-right p {
  margin: 0 0 1rem;
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  max-width: none;
}




/* ========================= */
/* Responsive                */
/* ========================= */


@media (min-width:1219px) {
  .magazine {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .magazine-left {
    margin-left: -30px;
    width: calc(100% + 30px);
    grid-template-columns: repeat(3, 1fr);
  }

  .magazine-right p {
    font-size: 1.6rem;
    line-height: 1.4;
  }
}


/* 992–1218.98px */

@media (max-width:1218.98px) and (min-width:992px) {
  .magazine {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
    column-gap: clamp(24px, 4.5vw, 40px);
  }

  .magazine-left {
    margin-left: 0;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .magazine-right p {
    font-size: 1.5rem;
    line-height: 1.4;
  }
}



/* 820–991px */

@media (max-width:991px) and (min-width:820px) {
  .magazine {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    column-gap: clamp(20px, 4vw, 32px);
  }

  .magazine-left {
    gap: clamp(12px, 3vw, 20px);
    grid-template-columns: repeat(3, 1fr);
  }

  .magazine-right p {
    font-size: 1.35rem;
    line-height: 1.4;
  }
}


/* ≤819px  */

@media (max-width:819px) {
  .magazine {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    padding-top: 50px;
  }

  .magazine-left {
    order: 1;
    margin-left: 0;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 3vw, 16px);
  }

  .magazine-right {
    order: 2;
  }

  .magazine-right p {
    font-size: 1.35rem;
    line-height: 1.4;
  }
}

/* ≤460px */
@media (max-width:460px) {
  .magazine {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
    padding-top: 40px;
  }

  .magazine-right p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .magazine-left {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≤360px */
@media (max-width:360px) {
  .magazine {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
  }

  .magazine-left {
    grid-template-columns: repeat(3, 1fr);
  }

  .magazine-right p {
    font-size: 1rem;
    line-height: 1.4;
  }
}



/* Desktop largo (≥1219px) */
@media (min-width:1219px) {

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1.6rem;
    line-height: 1.4;
  }
}

/* 992–1218.98px */
@media (max-width:1218.98px) and (min-width:992px) {

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1.5rem;
    line-height: 1.4;
  }
}

/* 820–991px */
@media (max-width:991px) and (min-width:820px) {

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1.35rem;
    line-height: 1.4;
  }
}

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

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1.25rem;
    line-height: 1.4;
  }
}

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

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1.15rem;
    line-height: 1.4;
  }
}

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

  .parolemangiate-left p,
  .magazine-right p {
    font-size: 1rem;
    line-height: 1.35;
  }
}


/* ==== FIX GUTTER 820–991px ==== */
@media (max-width:991px) and (min-width:820px) {


  .magazine {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }


  .magazine-left,
  .magazine-right {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==== ≤819px ==== */

@media (max-width:819px) {

  .magazine {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .magazine-left,
  .magazine-right {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}


























/* ===================== */
/* GIF / Slideshow frame */
/* ===================== */

.loop-tile {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 20px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}

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

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

/* 5 frame → ogni slot dura 20% del ciclo */
.loop-tile .frame:nth-child(1) {
  animation-delay: calc(var(--cycle) * 0/5);
}

.loop-tile .frame:nth-child(2) {
  animation-delay: calc(var(--cycle) * 1/5);
}

.loop-tile .frame:nth-child(3) {
  animation-delay: calc(var(--cycle) * 2/5);
}

.loop-tile .frame:nth-child(4) {
  animation-delay: calc(var(--cycle) * 3/5);
}

.loop-tile .frame:nth-child(5) {
  animation-delay: calc(var(--cycle) * 4/5);
  animation-name: pm-last;
}


/* Keyframes generali (per i primi 4 frame) */
@keyframes pm-swap {

  0%,
  19.999% {
    opacity: 1;
  }

  /* visibile nel proprio slot */
  20%,
  100% {
    opacity: 0;
  }

  /* nascosto fuori dallo slot */
}

/* Keyframes speciali per l’ultimo frame:
    rimane visibile fino al 100% del ciclo */
@keyframes pm-last {

  0%,
  100% {
    opacity: 1;
  }
}


.gif-cta-text {
  text-align: center;
  margin-top: 35px;
}

.gif-cta-text a {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 1px;
}

.gif-cta-text a:hover {
  text-decoration: underline;
}



@media (min-width:1219px) {
  .loop-tile {
    max-width: 880px;
    margin-top: 10px;
  }

  .gif-cta-text a {
    font-size: 1.3rem;
  }
}


@media (max-width:1218.98px) and (min-width:992px) {
  .loop-tile {
    max-width: 760px;
    margin-top: 8px;
  }

  .gif-cta-text a {
    font-size: 1.25rem;
  }
}


@media (max-width:991px) and (min-width:820px) {
  .loop-tile {
    max-width: 640px;
    margin-top: 6px;
  }

  .gif-cta-text a {
    font-size: 1.2rem;
  }
}


@media (max-width:819px) {
  .loop-tile {
    max-width: 720px;
    margin-top: 10px;
  }

  .gif-cta-text a {
    font-size: 1.25rem;
  }
}


@media (max-width:560px) {

  .gif-cta-text a {
    font-size: 1.1rem;
  }
}


@media (max-width:460px) {


  .gif-cta-text a {
    font-size: 1.1rem;
  }
}







/* ≤360px */
@media (max-width:360px) {
  .loop-tile {
    max-width: 400px;
    margin-top: -32px;
  }

  .gif-cta-text a {
    font-size: 1rem;
  }
}































/* ========================= */
/* WEBSITE PAROLE MANGIATE   */
/* ========================= */

.hero-website-pm {
  padding: calc(var(--space-xl) + 42px) 0 var(--space-xl);
  background: #fff;
}

.website-pm-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Colonna sinistra — testo */
.website-pm-left {
  padding-right: 2rem;
}

.website-pm-headline {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
  color: #000;
  font-style: normal;
  letter-spacing: .5px;
}

.website-pm-left p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin-bottom: 20px;
}


.website-pm-right {
  padding-left: 4rem;
  align-self: start;
  margin-top: 40px;
}

.website-pm-right img {
  display: block;
  max-width: 68%;

  margin-left: 15px;
  margin-right: auto;
  height: auto;
}



/* ========================= */
/* RESPONSIVE                */
/* ========================= */

/* ≥ 1219px */
@media (min-width:1219px) {
  .website-pm-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .website-pm-left {
    margin-left: -30px;
    padding-right: 2rem;
  }

  .website-pm-left p {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .website-pm-right {
    margin-top: 40px;
    padding-left: 2rem;
  }

  .website-pm-right img {
    max-width: 68%;
  }
}

/* 992–1218.98px */
@media (max-width:1218.98px) and (min-width:992px) {
  .website-pm-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .website-pm-left {
    margin-left: 0;
    padding-left: 0;
    padding-right: clamp(16px, 5vw, 100px);
  }

  .website-pm-left p {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .website-pm-right {
    margin-top: 28px;
    padding-left: clamp(16px, 5vw, 100px);
  }

  .website-pm-right img {
    max-width: 72%;
  }
}

/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .website-pm-inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-pm-headline {
    font-size: clamp(1.8rem, 4.8vw, 2.1rem);
    margin-bottom: 28px;
  }

  .website-pm-left {
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-pm-left p {
    font-size: 1.35rem;
    line-height: 1.45;
  }

  .website-pm-right {
    margin-top: 20px;
    padding-left: clamp(20px, 6vw, 40px);
  }

  .website-pm-right img {
    max-width: 76%;
    margin-left: 0;
  }
}

/* ≤819px */
@media (max-width:819px) {
  .website-pm-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-pm-left {
    padding-right: 0;
    text-align: left;
  }

  .website-pm-left p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .website-pm-right {
    margin-top: 10px;
    padding-left: 0;
    text-align: center;
  }

  .website-pm-right img {
    max-width: 50%;
    margin: 0 auto;
    display: block;
  }
}

/* ≤560px */
@media (max-width:560px) {
  .website-pm-inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .website-pm-headline {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .website-pm-left p {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .website-pm-right img {
    max-width: 40%;
  }
}

/* ≤360px */
@media (max-width:360px) {
  .website-pm-inner {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
    row-gap: 8px;
    margin-top: -52px;
    /* alza la sezione */
  }

  .website-pm-headline {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .website-pm-left p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .website-pm-right img {
    max-width: 50%;
  }
}





















/* =SLIDER STYLES = */

:root {
  --btn-size: 42px;
  --btn-bg: #0c111a;
  --btn-fg: #ffffff;
}

/* Contenitore */
.slider {
  position: relative;
  max-width: 670px;
  margin: 45px auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: transparent;
  box-shadow: 5px 10px 15px rgb(0, 0, 0, 0.05);
  overflow: visible;
}


.slider__track {
  height: 100%;
  display: flex;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}


.slider__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slider__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}


.slider__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: var(--btn-size);
  height: var(--btn-size);
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  box-shadow: none;
  transition: all .15s ease;
  z-index: 20;
}

.slider__btn--prev {
  left: -56px;
}


.slider__btn--next {
  right: -56px;
}




.slider__btn:hover,
.slider__btn:active {
  background: transparent;
  border-color: var(--btn-bg);
  color: var(--btn-bg);
}

/* Dots disabilitati */
.slider__dots {
  display: none !important;
}


.slider {
  overflow: visible;
}


.slider__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}


.slider__track {
  height: 100%;
  display: flex;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}





.slider-cta-text {
  text-align: center;
  margin-top: 35px;
}

.slider-cta-text a {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 1px;
}

.slider-cta-text a:hover {
  text-decoration: underline;
}



/* ≥1219px */
@media (min-width:1219px) {
  .slider {
    max-width: 800px;
    --btn-size: 44px;
  }

  .slider__btn--prev {
    left: -72px;
  }

  .slider__btn--next {
    right: -72px;
  }


  .slider-cta-text a {
    font-size: 1.3rem;
  }


}



/* 992–1218.98px — desktop medio/tablet orizzontale */
@media (max-width:1218.98px) and (min-width:992px) {
  .slider {
    max-width: 700px;
    --btn-size: 40px;
  }

  .slider__btn--prev {
    left: -64px;
  }

  .slider__btn--next {
    right: -64px;
  }


  .slider-cta-text a {
    font-size: 1.25rem;
  }


}



/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .slider {
    max-width: 600px;
    --btn-size: 36px;
  }

  .slider__btn--prev {
    left: -56px;
  }

  .slider__btn--next {
    right: -56px;
  }

  .slider-cta-text a {
    font-size: 1.2rem;
  }


}



/* ≤819px */
@media (max-width:819px) {
  .slider {
    max-width: 480px;
    aspect-ratio: 16/10;
    --btn-size: 32px;
  }

  .slider__btn--prev {
    left: -48px;
  }

  .slider__btn--next {
    right: -48px;
  }


  .slider-cta-text a {
    font-size: 1.25rem;
  }

}


/* ≤560px */
@media (max-width:560px) {
  .slider {
    max-width: 360px;
    --btn-size: 30px;
  }

  .slider__btn--prev {
    left: -42px;
  }

  .slider__btn--next {
    right: -42px;
  }


  .slider-cta-text a {
    font-size: 1.1rem;
  }
}





@media (max-width:460px) {
  .slider-parole {
    max-width: 300px;
    /* slider un po’ più piccolo */
    --btn-size: 24px;
    /* bottoni più compatti */
    margin-top: -10px;
    /* alza la sezione */
    margin-bottom: 10px;
    /* meno spazio sotto */
  }

  .slider-parole__btn--prev {
    left: -32px;
    /* aggiustato per la nuova dimensione */
  }

  .slider-parole__btn--next {
    right: -32px;
  }

  .slider-parole-cta a {
    font-size: 1rem;
    /* testo leggermente più piccolo */
  }

  .slider-parole__btn svg {
    width: 16px;
    /* freccia più piccola */
    height: 16px;
  }
}













/* ≤360px */
@media (max-width:360px) {
  .slider {
    max-width: 240px;
    /* slider più piccolo */
    --btn-size: 22px;
    /* bottoni più compatti */
    margin-top: -12px;
    /* alza la sezione */
  }

  .slider__btn--prev {
    left: -28px;
    /* aggiustato per la nuova dimensione */
  }

  .slider__btn--next {
    right: -28px;
  }

  .slider-cta-text a {
    font-size: 0.9rem;
    /* testo leggermente più piccolo */
  }


  .slider__btn svg {
    width: 14px;
    /* riduce la freccia */
    height: 14px;
  }
}



















/* ========================= */
/* HERO VIDEO — STILE        */
/* ========================= */

.hero-video {
  padding: 120px 0 60px;
  background: #fff;
}

.hero-video__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-video__title {
  font-size: 2.3rem;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
}






.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #f6eef7;
  border: 1px solid #eee;
  overflow: hidden;
}


.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-video__caption {
  margin-top: 32px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}






/* ========================= */
/* HERO VIDEO — RESPONSIVE   */
/* ========================= */


@media (min-width:1219px) {
  .hero-video {
    padding: 105px 0 60px;
  }

  .hero-video__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-video__title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .hero-video__caption {
    font-size: 1.20rem;
  }
}

/* 992–1218.98px */
@media (max-width:1218.98px) and (min-width:992px) {
  .hero-video {
    padding: 90px 0 56px;
  }

  .hero-video__inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .hero-video__title {
    font-size: 2rem;
    margin-bottom: 36px;
  }

  .hero-video__caption {
    font-size: 1.15rem;
  }
}

/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .hero-video {
    padding: 80px 0 50px;
  }

  .hero-video__inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .hero-video__title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .hero-video__caption {
    font-size: 1.10rem;
  }
}

/* ≤819px */
@media (max-width:819px) {
  .hero-video {
    padding: 70px 0 48px;
  }

  .hero-video__inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .hero-video__title {
    font-size: 1.55rem;
    margin-bottom: 28px;
  }

  .hero-video__caption {
    font-size: 1.05rem;
    margin-top: 24px;
  }
}

/* ≤560px */
@media (max-width:560px) {
  .hero-video {
    padding: 60px 0 40px;
  }

  .hero-video__inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .hero-video__title {
    font-size: 1.35rem;
    margin-bottom: 24px;
  }

  .hero-video__caption {
    font-size: 1rem;
    margin-top: 20px;
  }
}

/* ≤360px */
@media (max-width:360px) {
  .hero-video {
    padding: 50px 0 32px;
  }

  .hero-video__inner {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
  }

  .hero-video__title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .hero-video__caption {
    font-size: 1rem;
    margin-top: 18px;
  }
}











































/* -------------------------------------------------------------------------------- */
/* ! Incisivi */
/* -------------------------------------------------------------------------------- */


.hero-incisivi {
  padding: calc(var(--space-xl) + 90px) 0 var(--space-xl);
  background: #fff;
}

.incisivi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.incisivi-left {
  padding-right: 2rem;
}

/* Colonna destra (griglia 2x2) */
.incisivi-right {
  padding-left: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  align-content: start;
  margin-top: 90px;
}


.incisivi-right .info-block--main {
  grid-column: 1;
  grid-row: 1;
}

.incisivi-right .info-block--team {
  grid-column: 1;
  grid-row: 2;
}

.incisivi-right .info-block--softwares {
  grid-column: 2;
  grid-row: 1;
}

.incisivi-right .info-block--deliverables {
  grid-column: 2;
  grid-row: 2;
}


.incisivi-headline {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 36px;
  font-weight: 500;
  color: #000;
  letter-spacing: .5px;
}


.incisivi-left p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin-bottom: 18px;
}


.incisivi-right .info-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: #000;
}

.incisivi-right .info-block p {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1px 0;
  color: #000;
  line-height: 1.6em;
}





/* ============================================ */
/* 992–1218.98px */
/* ============================================ */
@media (max-width:1218.98px) and (min-width:992px) {
  .hero-incisivi {
    padding: calc(var(--space-xl) + 80px) 0 var(--space-xl);
  }


  .incisivi-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
    column-gap: clamp(36px, 4.5vw, 56px);
  }

  .incisivi-left {
    padding-right: clamp(20px, 4vw, 40px);
  }

  .incisivi-right {
    padding-left: 0;
    margin-left: 0;
  }

  .incisivi-right {
    margin-top: 80px;
  }

}


/* ========================= */
/* 820–991px — tablet        */
/* ========================= */


@media (max-width:991px) and (min-width:820px) {
  .hero-incisivi {
    padding: calc(var(--space-xl) + 70px) 0 var(--space-xl);
  }


  .incisivi-inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    column-gap: clamp(28px, 4vw, 40px);
  }

  .incisivi-left {
    padding-right: clamp(18px, 4vw, 32px);
  }

  .incisivi-right {
    padding-left: 0;
    margin-left: 0;
  }

  .incisivi-right {
    margin-top: 70px;
    /* +10px */
    gap: 14px 32px;
  }
}


/* ========================= */
/* ≤819px — mobile (2 colonne) */
/* ========================= */

@media (max-width:819px) {
  .hero-incisivi {
    padding: calc(var(--space-xl) + 60px) 0 var(--space-l);
  }


  .incisivi-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .incisivi-right {
    margin-top: 50px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 4vw, 22px) clamp(18px, 4vw, 26px);
    justify-items: start;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
  }
}


/* ========================= */
/* ≤560px */
/* ========================= */

@media (max-width:560px) {
  .hero-incisivi {
    padding: calc(var(--space-xl) + 50px) 0 var(--space-l);
  }

  .incisivi-inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .incisivi-right {
    margin-top: 40px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 4vw, 20px) clamp(14px, 4vw, 22px);
    padding-left: 0;
    margin-left: 0;
  }

  .incisivi-headline {
    font-size: 1.9rem;
  }

  .incisivi-left p {
    font-size: 1.4em;
  }

  .incisivi-right .info-block h3 {
    font-size: 1.1rem;
  }

  .incisivi-right .info-block p {
    font-size: 1rem;
  }
}


/* ========================= */
/* ≤360px */
/* ========================= */
@media (max-width:360px) {
  .hero-incisivi {
    padding: calc(var(--space-xl) + 40px) 0 var(--space-m);
  }


  .incisivi-inner {
    --gutter: clamp(12px, 5vw, 16px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    row-gap: 8px;
  }

  .incisivi-right {
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding-left: 0;
    margin-left: 0;
  }

  .incisivi-headline {
    font-size: 1.7rem;
  }

  .incisivi-left p {
    font-size: 1.3em;
  }

  .incisivi-right .info-block h3 {
    font-size: 1rem;
  }

  .incisivi-right .info-block p {
    font-size: 0.95rem;
  }
}























/* logo incisivi */


.incisivi-logo {
  background: var(--bg);
  padding-block: clamp(20px, 6vw, 40px) clamp(40px, 8vw, 80px);
}

.incisivi-logo__inner {
  max-width: var(--maxw, 1200px);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.incisivi-logo__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
}

.incisivi-logo__image {
  width: min(750px, 100%);
  height: auto;
  margin-top: 48px;
  display: block;
}

/* ============================================ */
/* 992–1218.98px */
/* ============================================ */
@media (max-width:1218.98px) and (min-width:992px) {
  .incisivi-logo {
    padding-block: clamp(16px, 4vw, 28px) clamp(28px, 6vw, 54px);
    margin-top: -20px;
  }

  .incisivi-logo__title {
    font-size: 1.1rem;
  }

  .incisivi-logo__image {
    width: min(680px, 100%);
    margin-top: 32px;
    /* ↑ alzato */
  }
}


/* ========================= */
/* 820–991px */
/* ========================= */
@media (max-width:991px) and (min-width:820px) {
  .incisivi-logo {
    padding-block: clamp(14px, 4vw, 26px) clamp(26px, 5vw, 48px);
    margin-top: -20px;
  }

  .incisivi-logo__title {
    font-size: 1.05rem;
  }

  .incisivi-logo__image {
    width: min(600px, 100%);
    margin-top: 28px;
    /* ↑ alzato */
  }
}


/* ========================= */
/* ≤819px */
/* ========================= */
@media (max-width:819px) {
  .incisivi-logo {
    padding-block: clamp(12px, 4vw, 22px) clamp(22px, 5vw, 40px);
    margin-top: -20px;
  }

  .incisivi-logo__inner {
    padding-inline: clamp(20px, 6vw, 40px);
  }

  .incisivi-logo__title {
    font-size: 1rem;
  }

  .incisivi-logo__image {
    width: min(520px, 100%);
    margin-top: 24px;
    /* ↑ alzato */
  }
}


/* ========================= */
/* ≤560px */
/* ========================= */
@media (max-width:560px) {
  .incisivi-logo {
    padding-block: clamp(10px, 4vw, 18px) clamp(18px, 4.5vw, 30px);
    margin-top: -20px;
  }

  .incisivi-logo__inner {
    padding-inline: clamp(16px, 6vw, 24px);
  }

  .incisivi-logo__title {
    font-size: 0.95rem;
  }

  .incisivi-logo__image {
    width: min(440px, 100%);
    margin-top: 20px;

  }
}


/* ========================= */
/* ≤360px */
/* ========================= */
@media (max-width:360px) {
  .incisivi-logo {
    padding-block: clamp(8px, 3.5vw, 14px) clamp(14px, 4vw, 24px);
    margin-top: -20px;
  }

  .incisivi-logo__inner {
    padding-inline: clamp(12px, 5vw, 16px);
  }

  .incisivi-logo__title {
    font-size: 0.9rem;
  }

  .incisivi-logo__image {
    width: min(360px, 100%);
    margin-top: 16px;
    /* ↑ alzato */
  }
}









/* SEZIONE */
.hero-magazine-incisivi {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 80px 0;
  background: #fff;
}


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

.magazine-incisivi-left {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.magazine-incisivi-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

.magazine-incisivi-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.06);
  transform-origin: center;
}

/* COLONNA DESTRA */

.magazine-incisivi-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
}

/* TITOLI E PARAGRAFI */
.incisivi-headline {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
  color: #000;
  font-style: normal !important;
}

.magazine-incisivi-right p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin-bottom: 20px;
}




/* 992–1218.98px */
/* 992–1218.98px */
@media (max-width:1218.98px) and (min-width:992px) {
  .magazine-incisivi-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
    margin-top: 32px;
    /* ↓ spostata più giù */
  }

  .magazine-incisivi-right p {
    font-size: 1.5rem;
    line-height: 1.45;
  }
}


/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .magazine-incisivi-inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    margin-top: 28px;
    /* ↓ spostata più giù */
  }

  .magazine-incisivi-right {
    order: 1;
  }

  .magazine-incisivi-left {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .magazine-incisivi-right p {
    font-size: 1.35rem;
    line-height: 1.45;
  }
}


/* ≤819px */
@media (max-width:819px) {
  .magazine-incisivi-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    margin-top: 24px;
    /* ↓ spostata più giù */
  }

  .magazine-incisivi-right {
    order: 1;
    text-align: left;
  }

  .magazine-incisivi-left {
    order: 2;
    justify-content: flex-start;
  }

  .magazine-incisivi-right p {
    font-size: 1.25rem;
    line-height: 1.4;
  }
}


/* ≤560px */
@media (max-width:560px) {
  .magazine-incisivi-inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
    margin-top: 20px;
    /* ↓ spostata più giù */
  }

  .incisivi-headline {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .magazine-incisivi-right p {
    font-size: 1.15rem;
    line-height: 1.4;
  }
}


/* ≤360px */
@media (max-width:360px) {
  .magazine-incisivi-inner {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
    row-gap: 8px;
    margin-top: 16px;
    /* ↓ spostata più giù */
  }

  .incisivi-headline {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .magazine-incisivi-right p {
    font-size: 1rem;
    line-height: 1.35;
  }
}


































/* BASE (≥1219px)            */


.covers-incisivi {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 40px 0;
}

.covers-inner {
  --gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: var(--gap);
  justify-content: center;
  align-items: start;
}

.cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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


/* 992–1218px */
@media (max-width:1218.98px) and (min-width:992px) {
  .covers-incisivi {
    margin-top: -80px;
    /* ↑ alzata di più */
  }

  .covers-inner {
    --gutter: clamp(20px, 3vw, 32px);
    --side: clamp(40px, 6vw, 80px);
    /* ↑ più spazio ai lati */
    max-width: 1000px;
    gap: var(--gutter);
    padding-inline: var(--side);

    grid-template-columns: repeat(3,
        calc((100% - (2 * var(--gutter))) / 3));
    justify-content: center;
  }
}

/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .covers-incisivi {
    margin-top: -80px;
  }

  .covers-inner {
    --gutter: clamp(18px, 3vw, 28px);
    --side: clamp(32px, 6vw, 64px);
    /* ↑ più respiro */
    max-width: 800px;
    gap: var(--gutter);
    padding-inline: var(--side);

    grid-template-columns: repeat(3,
        calc((100% - (2 * var(--gutter))) / 3));
    justify-content: center;
  }
}

/* ≤819px */
@media (max-width:819px) {
  .covers-incisivi {
    margin-top: -90px;
    /* ↑ ancora di più sui piccoli */
  }

  .covers-inner {
    --gutter: clamp(16px, 4vw, 24px);
    --side: clamp(28px, 7vw, 56px);
    max-width: 100%;
    gap: var(--gutter);
    padding-inline: var(--side);

    grid-template-columns: repeat(3,
        calc((100% - (2 * var(--gutter))) / 3));
    justify-content: center;
  }
}

/* ≤560px */
@media (max-width:560px) {
  .covers-incisivi {
    margin-top: -100px;
  }

  .covers-inner {
    --gutter: clamp(14px, 4vw, 20px);
    --side: clamp(24px, 8vw, 48px);
    /* ↑ lato ancora più largo */
    gap: var(--gutter);
    padding-inline: var(--side);

    grid-template-columns: repeat(3,
        calc((100% - (2 * var(--gutter))) / 3));
    justify-content: center;
  }
}

/* ≤360px */
@media (max-width:360px) {
  .covers-incisivi {
    margin-top: -100px;
  }

  .covers-inner {
    --gutter: 12px;
    --side: clamp(20px, 10vw, 40px);
    gap: var(--gutter);
    padding-inline: var(--side);

    grid-template-columns: repeat(3,
        calc((100% - (2 * var(--gutter))) / 3));
    justify-content: center;
  }
}

























/* ===================== */
/* GIF / Slideshow frame */
/* ===================== */

.incisivi-loop {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 20px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}





.incisivi-loop-section {
  padding-top: 65px;
}





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

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





@keyframes pm-last {

  0%,
  100% {
    opacity: 1;
  }
}


.incisivi-cta {
  text-align: center;
  margin-top: 35px;
}

.incisivi-cta a {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 1px;
}

.incisivi-cta a:hover {
  text-decoration: underline;
}


/* ≥1219px */
@media (min-width:1219px) {
  .incisivi-loop {
    max-width: 880px;
    margin-top: 10px;
  }

  .incisivi-cta a {
    font-size: 1.3rem;
  }
}


/* 992–1218px */
@media (max-width:1218.98px) and (min-width:992px) {
  .incisivi-loop {
    max-width: 760px;
    margin-top: 8px;
  }

  .incisivi-cta a {
    font-size: 1.25rem;
  }
}

/* 820–991px */
@media (max-width:991px) and (min-width:820px) {
  .incisivi-loop {
    max-width: 640px;
    margin-top: 6px;
  }

  .incisivi-cta a {
    font-size: 1.2rem;
  }
}


/* ≤819px */
@media (max-width:819px) {
  .incisivi-loop {
    max-width: 720px;
    margin-top: 10px;
  }

  .incisivi-cta a {
    font-size: 1.25rem;
  }
}


/* ≤560px */
@media (max-width:560px) {
  .incisivi-cta a {
    font-size: 1.1rem;
  }
}


/* ≤460px */
@media (max-width:460px) {
  .incisivi-cta a {
    font-size: 1.1rem;
  }
}

/* ≤360px */
@media (max-width:360px) {
  .incisivi-loop {
    max-width: 400px;
    margin-top: 6px;
  }

  .incisivi-cta a {
    font-size: 1rem;
  }
}




























/* ========================= */
/* WEBSITE INCISIVI          */
/* ========================= */


.hero-website-incisivi {
  padding: calc(var(--space-xl) + 30px) 0 var(--space-xl);
  background: #fff;
}

.website-incisivi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Colonna sinistra — testo */
.website-incisivi-left {
  padding-right: 2rem;
}

.website-incisivi-headline {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
  color: #000;
  font-style: normal;
  letter-spacing: .5px;
}

.website-incisivi-left p {
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.4;
  margin-bottom: 15px;
}

.website-incisivi-right {
  padding-left: 4rem;
  align-self: start;
  margin-top: 30px;
  margin-right: -180px;
  display: flex;
  justify-content: flex-end;
}



.website-incisivi-right img {
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
}



/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (min-width:1219px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 20px) 0 var(--space-xl);
  }

  .website-incisivi-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .website-incisivi-left {
    margin-left: -30px;
    padding-right: 2rem;
  }

  .website-incisivi-left p {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .website-incisivi-right {
    margin-top: 28px;
    padding-left: 2rem;
  }

  .website-incisivi-right img {
    max-width: 90%;
  }
}

@media (max-width:1218.98px) and (min-width:992px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 18px) 0 var(--space-xl);
  }

  .website-incisivi-inner {
    padding-left: clamp(16px, 5vw, 100px);
    padding-right: clamp(16px, 5vw, 100px);
  }

  .website-incisivi-left {
    margin-left: 0;
    padding-left: 0;
    padding-right: clamp(16px, 5vw, 100px);
  }

  .website-incisivi-left p {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .website-incisivi-right {
    margin-top: 20px;
    padding-left: clamp(16px, 5vw, 100px);
  }

  .website-incisivi-right img {
    max-width: 85%;
  }
}

@media (max-width:991px) and (min-width:820px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 14px) 0 var(--space-xl);
  }

  .website-incisivi-inner {
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-incisivi-headline {
    font-size: clamp(1.8rem, 4.8vw, 2.1rem);
    margin-bottom: 28px;
  }

  .website-incisivi-left {
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-incisivi-left p {
    font-size: 1.35rem;
    line-height: 1.45;
  }

  .website-incisivi-right {
    margin-top: 12px;
    padding-left: clamp(20px, 6vw, 40px);
  }

  .website-incisivi-right img {
    max-width: 80%;
    margin-bottom: 32px;
    margin-left: 0;
  }
}

@media (max-width:819px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 12px) 0 var(--space-l);
  }

  .website-incisivi-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }

  .website-incisivi-left {
    padding-right: 0;
    text-align: left;
  }

  .website-incisivi-left p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .website-incisivi-right {
    margin-top: 4px;
    padding-left: 0;
    text-align: center;
  }

  .website-incisivi-right img {
    max-width: 75%;
    display: block;
    margin: 0;
  }
}

@media (max-width:560px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 10px) 0 var(--space-l);
  }

  .website-incisivi-inner {
    padding-left: clamp(16px, 6vw, 24px);
    padding-right: clamp(16px, 6vw, 24px);
  }

  .website-incisivi-headline {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .website-incisivi-left p {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .website-incisivi-right {
    text-align: center;
  }

  .website-incisivi-right img {
    max-width: 65%;
    display: block;
    margin: 0;
  }
}

@media (max-width:360px) {
  .hero-website-incisivi {
    padding: calc(var(--space-xl) + 6px) 0 var(--space-m);
  }

  .website-incisivi-inner {
    padding-left: clamp(12px, 5vw, 16px);
    padding-right: clamp(12px, 5vw, 16px);
    row-gap: 8px;
  }

  .website-incisivi-headline {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .website-incisivi-left p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .website-incisivi-right {
    text-align: center;
  }

  .website-incisivi-right img {
    max-width: 55%;
    display: block;
    margin: 0;
  }
}



















/* SLIDER INCISIVI */

.slider-incisivi {
  --btn-size: 42px;
  --btn-bg: #0c111a;
  --btn-fg: #ffffff;


  position: relative;
  max-width: 670px;
  margin: 45px auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: transparent;
  box-shadow: 5px 10px 15px rgb(0 0 0 / 5%);
  overflow: visible;
}

/* VIEWPORT che maschera le slide */
.slider-incisivi__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

/* Traccia */
.slider-incisivi__track {
  height: 100%;
  display: flex;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

/* Slide */
.slider-incisivi__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slider-incisivi__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* FRECCE (solo bordo in hover/click) */
.slider-incisivi__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: var(--btn-size);
  height: var(--btn-size);
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  box-shadow: none;
  transition: all .15s ease;
  z-index: 20;
}

.slider-incisivi__btn--prev {
  left: -56px;
}


.slider-incisivi__btn--next {
  right: -56px;
}



.slider-incisivi__btn:hover,
.slider-incisivi__btn:active {
  background: transparent;
  border-color: var(--btn-bg);
  color: var(--btn-bg);
}


.slider-incisivi__dots {
  display: none !important;
}

.slider-incisivi-cta {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 80px;
}

.slider-incisivi-cta a {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 1px;


}

.slider-incisivi-cta a:hover {
  text-decoration: underline;
}







/* RESPONSIVE */

@media (min-width:1219px) {
  .slider-incisivi {
    max-width: 800px;
    --btn-size: 44px;
    margin-top: -16px;
  }

  .slider-incisivi__btn--prev {
    left: -72px;
  }

  .slider-incisivi__btn--next {
    right: -72px;
  }

  .slider-incisivi-cta a {
    font-size: 1.3rem;
  }
}

@media (max-width:1218.98px) and (min-width:992px) {
  .slider-incisivi {
    max-width: 700px;
    --btn-size: 40px;
    margin-top: -14px;
  }

  .slider-incisivi__btn--prev {
    left: -64px;
  }

  .slider-incisivi__btn--next {
    right: -64px;
  }

  .slider-incisivi-cta a {
    font-size: 1.25rem;
  }
}

@media (max-width:991px) and (min-width:820px) {
  .slider-incisivi {
    max-width: 600px;
    --btn-size: 36px;
    margin-top: -12px;
  }

  .slider-incisivi__btn--prev {
    left: -56px;
  }

  .slider-incisivi__btn--next {
    right: -56px;
  }

  .slider-incisivi-cta a {
    font-size: 1.2rem;
  }
}

@media (max-width:819px) {
  .slider-incisivi {
    max-width: 480px;
    aspect-ratio: 16/10;
    --btn-size: 32px;
    margin-top: -10px;
  }

  .slider-incisivi__btn--prev {
    left: -48px;
  }

  .slider-incisivi__btn--next {
    right: -48px;
  }

  .slider-incisivi-cta a {
    font-size: 1.25rem;
  }
}

@media (max-width:560px) {
  .slider-incisivi {
    max-width: 360px;
    --btn-size: 30px;
    margin-top: -8px;
  }

  ce .slider-incisivi__btn--prev {
    left: -42px;
  }

  .slider-incisivi__btn--next {
    right: -42px;
  }

  .slider-incisivi-cta a {
    font-size: 1.1rem;
  }
}

@media (max-width:460px) {
  .slider-incisivi {
    max-width: 300px;
    --btn-size: 24px;
    margin-top: -10px;
    margin-bottom: 10px;
  }

  .slider-incisivi__btn--prev {
    left: -32px;
  }

  .slider-incisivi__btn--next {
    right: -32px;
  }

  .slider-incisivi-cta a {
    font-size: 1rem;
  }

  .slider-incisivi__btn svg {
    width: 16px;
    height: 16px;
  }
}


/* ≤360px */
@media (max-width:360px) {
  .slider-incisivi {
    max-width: 240px;
    --btn-size: 22px;
    margin-top: -12px;
    margin-bottom: -32px;
  }

  .slider-incisivi__btn--prev {
    left: -28px;
  }

  .slider-incisivi__btn--next {
    right: -28px;
  }

  .slider-incisivi-cta a {
    font-size: 0.9rem;
  }

  .slider-incisivi__btn svg {
    width: 14px;
    height: 14px;
  }
}







/* INTRO VIDEO */

:root {
  --intro-duration: 600ms;
  --intro-delay: 500ms;
  --intro-ease: ease-in-out;
}



.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f6e9f5;
  animation: introIn 300ms ease-out both;
  overflow: hidden;
}

.intro__video {
  max-width: 60vw;
  max-height: 60vh;
  object-fit: contain;
  transition: opacity 600ms ease-in-out;
}

/* Il video sparisce subito */
.intro--leaving .intro__video {
  opacity: 0;
}

/* Lo slide parte un po’ dopo */
.intro--leaving {
  animation: introOut var(--intro-duration) var(--intro-ease) var(--intro-delay) forwards;
}

@keyframes introIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes introOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100%);
    opacity: 1;
  }
}





/* ============================= */
/* INTRO VIDEO - MEDIA QUERIES   */
/* ============================= */


/* Tablet e desktop default (≥ 901px) */
.intro__video {
  max-width: 95vw;
  max-height: 95vh;
}

/* Tablet piccolo (≤ 900px) */
@media (max-width: 900px) {
  .intro__video {
    max-width: 90vw;
    max-height: 80vh;
  }
}

/* Mobile medio (≤ 700px) */
@media (max-width: 700px) {
  .intro__video {
    max-width: 95vw;
    max-height: 75vh;
  }
}

/* Mobile stretto (≤ 460px) */
@media (max-width: 460px) {
  .intro__video {
    max-width: 128vw;
    max-height: 100vh;
  }
}