:root {
  --bg-color: #F8F8F6;
  /* palette cromatica */
  --text-color: #111111;
  --verde-boschiroli: #86c600;
  --verde-negativo: #7939ff;
  --nav-height: 80px;
}

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

/* Screen reader per SEO e Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--verde-boschiroli) var(--bg-color);
}

::selection {
  background-color: var(--verde-boschiroli);
  color: #111111;
}

.label::selection,
.label *::selection {
  background-color: var(--verde-boschiroli);
  color: var(--verde-negativo, #7939ff);
  -webkit-text-fill-color: var(--verde-negativo, #7939ff);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'OSWALD', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Scrollbar per Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--verde-boschiroli) var(--bg-color);
}

/* Scrollbar per Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--verde-boschiroli);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #74ab00;
  /* HOVER */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  /* Centra tutti gli elementi in verticale */
  z-index: 100;
  background-color: rgba(248, 248, 246, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  font-family: 'Inter', sans-serif;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* spazio tra il logo e la scritta */
}

.logo-area {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.nav-brand {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: flex;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.nav-right {
  display: flex;
  gap: 2.5rem;
}

.nav-page-heading {
  display: flex;
  font: inherit;
  line-height: inherit;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  opacity: 0.4;
  display: flex;
  transition: opacity 0.3s ease;
}

.nav-link span,
.nav-brand span {
  display: inline-block;
  transition: opacity 0.1s ease;
}

/* Active Nav Link State */
.nav-link.active {
  color: var(--verde-boschiroli) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  /* Semibold */
  text-decoration: none !important;
  padding-bottom: 4px;
  margin-bottom: -5.5px;
  border-bottom: 1.5px solid currentColor;
}

.nav-link.active span {
  color: var(--verde-boschiroli) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.nav-link:hover,
.nav-left:hover .nav-brand,
.nav-brand:hover {
  opacity: 1;
}

.nav-link:hover span,
.nav-left:hover .nav-brand span,
.nav-brand:hover span {
  animation: typewriter 0.1s steps(1) both;
  animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes typewriter {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
}

.mobile-menu-details {
  display: none;
}

/* Hero */
.hero-section {
  position: relative;
  height: calc(37vh + 56.25vw);
  width: 100%;
}

.hero-text-wrapper {
  position: absolute;
  top: calc(10vh + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  font-family: 'Oswald', sans-serif;
  font-size: 5vw;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-color);
  white-space: nowrap;
}

/* Image Container */
.image-container {
  position: absolute;
  top: calc(43vh + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 38vh;
  overflow: hidden;
  z-index: 10;
  will-change: width, height, top, transform;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Labels */
.labels-container {
  width: 100%;
  margin-top: 1.5vw;
  z-index: 20;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 1vw;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--verde-boschiroli);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-20px);
  will-change: transform, opacity;
  white-space: nowrap;
  display: inline-flex;
}

.label span {
  display: inline-block;
  position: relative;
  color: transparent;
  pointer-events: auto;
  z-index: 1;
}

.label span::before {
  content: attr(data-letter);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--verde-boschiroli);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.label span:hover::before {
  animation: letterAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes letterAppear {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


.scroll-indicator {
  position: absolute;
  top: calc(100vh - 33px);
  left: 50vw;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  z-index: 50;
  will-change: opacity;
}


.scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-color);
  opacity: 0.25;
  animation: pulse-scroll 1.5s ease-in-out infinite;
}

@keyframes pulse-scroll {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

/* Carosello Partner */
.partners-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-color);
  width: 100%;
  padding: 2vw 0;
  overflow: hidden;
}

.partners-carousel {
  display: flex;
  overflow: hidden;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-carousel 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-track-group {
  display: flex;
  align-items: center;
  gap: 6vw;
  padding-right: 6vw;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.partner-link:hover {
  opacity: 1;
}

.partner-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

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

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

/* Footer */
.site-footer-new {
  width: 100%;
  background-color: var(--bg-color);
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
}

.footer-main-wrapper {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

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

.footer-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-overlay-content * {
  pointer-events: auto;
}

.footer-container {
  width: 100%;
  padding: 0 4vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Nomi e titoli */
.footer-header-area {
  margin-top: 22vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-header-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  margin-top: clamp(4px, 0.5vw, 8px);
  opacity: 0.3;
  order: 3;
}

.footer-header-left,
.footer-header-right {
  font-size: clamp(14px, 1.11vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
  color: var(--text-color);
}

.footer-header-right {
  text-align: right;
}

/* Social, contatti, indirizzi */
.footer-top-area {
  margin-top: 52vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
}

.footer-content-left,
.footer-content-center,
.footer-content-right {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 12vh, 120px);
}

.footer-content-left {
  text-align: left;
  align-items: flex-start;
}

.footer-content-center {
  text-align: center;
  align-items: center;
}

.footer-content-right {
  text-align: right;
  align-items: flex-end;
}

.footer-social-group,
.footer-contact-group,
.footer-address-group {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1vw, 20px);
}


.footer-content-center .footer-social-group {
  align-items: center;
  text-align: center;
}

.footer-content-right .footer-contact-group {
  align-items: flex-end;
  text-align: right;
}

.footer-link-item {
  text-decoration: none;
  color: var(--text-color);
  font-size: clamp(14px, 1.11vw, 20px);
  font-weight: 600;
  opacity: 0.4;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-link-item:hover {
  opacity: 1;
}

.footer-info-link {
  text-decoration: none;
  color: var(--text-color) !important;
  font-size: clamp(12px, 0.97vw, 18px);
  font-weight: 400;
  opacity: 1;
  display: block;
  transition: color 0.3s ease;
}

.footer-info-link:hover {
  color: var(--verde-boschiroli) !important;
}

/* COPYRIGHT, P.IVA, PRIVACY */
.footer-info-bar {
  height: clamp(48px, 4.44vw, 80px);
  width: calc(100% + 8vw);
  position: relative;
  margin-left: -4vw;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
}

.footer-info-container {
  max-width: 100%;
  padding: 0 4vw;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--text-color);
  font-size: clamp(12px, 0.97vw, 18px);
  line-height: clamp(16px, 1.39vw, 24px);
  font-weight: 400;
}

.footer-info-left {
  text-align: left;
}

.footer-info-center {
  text-align: center;
}

.footer-info-right {
  text-align: right;
}

/* Firma */
.footer-black-band {
  height: clamp(48px, 4.44vw, 80px);
  background-color: var(--text-color);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-signature-link {
  text-align: center;
  font-size: clamp(12px, 0.97vw, 18px);
  font-weight: 500;
  color: var(--verde-boschiroli);
  text-decoration: none;
  opacity: 1;
  display: inline-flex;
  position: relative;
  transition: color 0.4s ease;
}

.footer-signature-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-signature-link:hover::after {
  width: 100%;
  left: 0;
}

.signature-airo {
  text-decoration: none;
  margin: 0 0.25em;
}

body:has(.footer-signature-link:hover) {
  --bg-color: #ffffff;
}

.footer-signature-link:hover {
  color: #ffffff;
}

body:has(.footer-signature-link:hover) .site-footer-new,
body:has(.footer-signature-link:hover) .partners-section,
body:has(.footer-signature-link:hover) .content-section {
  background-color: #ffffff;
}

body:has(.footer-signature-link:hover) .navbar {
  background-color: rgba(255, 255, 255, 0.75);
}


.navbar,
.site-footer-new,
.partners-section,
.footer-black-band,
.content-section {
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section {
  background-color: var(--bg-color);
}


@media (max-width: 1024px) {
  .footer-bg-img {
    opacity: 0.8;
  }

  .footer-header-left,
  .footer-header-right {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .footer-top-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(50px, 7vh, 72px);
    margin-top: 20vh;
    transform: translateY(-20%);
  }

  .footer-content-left,
  .footer-content-center,
  .footer-content-right {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-address-group,
  .footer-social-group,
  .footer-contact-group {
    align-items: center;
    text-align: center;
  }

  .footer-link-item {
    position: relative;
    width: fit-content;
    font-size: clamp(16px, 1.8vw, 18px);
    opacity: 1;
  }

  .footer-link-item::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 2px;
    background-color: currentColor;
    opacity: 0.15;
  }

  .footer-info-bar {
    height: 90px;
    flex-shrink: 0;
  }

  .footer-info-container {
    width: max-content;
    max-width: 92vw;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 22px;
    margin: 0 auto;
    padding: 12px 0 14px;
  }

  .footer-info-left {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: -0.02em;
  }

  .footer-info-center {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    pointer-events: none;
    cursor: default;
  }

  .footer-info-right {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .footer-info-center,
  .footer-info-link {
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: -0.02em;
  }

  .footer-black-band {
    height: clamp(64px, 7vw, 72px);
  }

  .footer-signature-link {
    font-size: clamp(14px, 2vw, 16px);
  }
}

/* Custom Cursor */
@media (pointer: fine) {

  body,
  a,
  button,
  .hamburger-menu,
  .label,
  .nav-link,
  .nav-left,
  .partner-link {
    cursor: none !important;
  }

  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--verde-boschiroli);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
  }

  .custom-cursor-square {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
  }

  .custom-cursor-square.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(134, 198, 0, 0.05);
    border-color: var(--verde-boschiroli);
    mix-blend-mode: normal;
  }
}

@media (pointer: coarse) {

  .custom-cursor-dot,
  .custom-cursor-square {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  a,
  button,
  .hamburger-menu,
  .partner-link,
  .nav-left,
  .label,
  .footer-link-item,
  .footer-info-link,
  .footer-signature-link {
    cursor: pointer !important;
  }
}


/* --- CHI SONO --- */
.about-section {
  background-color: var(--bg-color);
  padding: 8vw 0;
  margin-bottom: 5vw;
  width: 100%;
  position: relative;
  z-index: 5;
}

.about-container {
  width: 92vw;
  max-width: 1800px;
  margin-left: 4vw;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.about-top-bar-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 4vw;
}

.about-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

.top-bar-right-group {
  display: flex;
  align-items: center;
}

.top-bar-black {
  width: clamp(30px, 3.5vw, 60px);
  height: clamp(15px, 1.75vw, 30px);
  background-color: #111;
  flex-shrink: 0;
}

.top-bar-line {
  margin: 0.3vw 4vw 5vw 4vw;
  height: 1px;
  background-color: #111;
}

.top-bar-text {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  color: var(--text-color);
  margin-right: 1vw;
  white-space: nowrap;
}

.top-bar-green {
  width: clamp(15px, 1.75vw, 30px);
  height: clamp(15px, 1.75vw, 30px);
  background-color: var(--verde-boschiroli);
  flex-shrink: 0;
}

.about-grid-new {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: min(9vw, 120px);
  align-items: flex-start;
}

.dove-ricevo-grid-intro {
  align-items: flex-end;
}

.dove-ricevo-intro-text {
  margin-bottom: 0;
}

/* Colonna sinsitra */
.about-left-col-new {
  display: flex;
  flex-direction: column;
}

.about-title-new {
  font-family: 'OSWALD', sans-serif;
  color: var(--text-color);
  margin-bottom: 10vw;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.about-title-new .dott {
  font-size: clamp(1.2rem, 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  margin-right: 0.3em;
}

.about-title-new .name-first {
  font-size: clamp(3.1rem, 4.92vw, 6.475rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.about-title-new .name-last {
  position: relative;
  font-size: clamp(2.95rem, 4.67vw, 6.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.punto-fuori {
  position: absolute;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 90%;
  margin-left: 1vw;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 1 / 1.33;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1);
  position: relative;
  z-index: 2;
}

.img-square-green {
  position: absolute;
  top: -1vw;
  left: -1vw;
  height: clamp(25px, 2.5vw, 40px);
  width: calc(clamp(25px, 2.5vw, 40px) * 2);
  background-color: var(--verde-boschiroli);
  z-index: 3;
}

.img-square-black {
  position: absolute;
  bottom: -1vw;
  right: -1vw;
  width: clamp(25px, 2.5vw, 40px);
  height: clamp(25px, 2.5vw, 40px);
  background-color: #111;
  z-index: 3;
}

/* Colonna destra */
.about-right-col-new {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  max-width: min(850px, 92%);
}

.about-intro-text {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(0.6rem, 0.95vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10vw;
  text-align: left;
  text-wrap: pretty;
}

.about-intro-text em {
  font-weight: 600;
}

.about-text-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text-blocks p {
  margin: 0;
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(0.6rem, 0.95vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-color);
  text-align: left;
  text-wrap: pretty;
}

.about-text-blocks strong {
  font-weight: 600;
  font-size: 1.15em;
}

/* DIVIDER LINE */
.about-divider-line {
  height: 1px;
  background-color: #ececea;
  opacity: 1;
  margin: 7.5vw 4vw 0 4vw;
}

/* Pubblicazioni */
.about-publications-section-new {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: min(9vw, 120px);
  margin-top: 4vw;
}

.pub-left-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pub-header {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.pub-label {
  font-family: 'OSWALD', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verde-boschiroli);
}

.pub-title-large {
  font-family: 'OSWALD', sans-serif;
  font-size: clamp(2rem, 3.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-color);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.about-decorative-image-new {
  margin-top: 8vw;
  display: flex;
  justify-content: flex-start;
  margin-left: -2vw;
}

.about-decorative-image-new img {
  width: auto;
  max-width: 850px;
  height: auto;
  filter: blur(2px) opacity(0.6);
}

.pub-right-col {
  display: flex;
  flex-direction: column;
  max-width: min(850px, 92%);
  padding-top: 2.6vw;
}

.pub-list-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.pub-list-new li {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pub-list-new li.revealed {
  opacity: 1;
  transform: translateY(0);
}

.pub-year {
  font-weight: 400;
  /* Anno in regular */
  margin-bottom: 0.8vw;
  color: var(--text-color);
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 0.3vw;
  width: 100%;
}

.pub-title {
  display: block;
  font-style: italic;
  /* Titolo in italic */
}

.pub-authors {
  display: block;
  font-weight: 600;
  /* Autori in semibold */
}

.pub-publisher {
  display: block;
  font-weight: 400;
  /* Casa editrice in regular */
}

@media (max-width: 1200px) {

  .about-grid-new,
  .about-publications-section-new {
    gap: 6vw;
  }
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  body.mobile-menu-open {
    position: fixed;
    top: var(--mobile-menu-scroll-offset, 0);
    left: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
}

@media (max-width: 768px) {

  .site-footer {
    gap: 2.5rem;
    padding: 8vw 4vw;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
  }

  /* Navbar */
  .navbar {
    background-color: var(--bg-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger-menu .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-right {
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    right: -100%;
    width: 100vw;
    height: auto;
    background-color: var(--bg-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 20px;
    padding-top: clamp(20px, 3.5vh, 32px);
    padding-right: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(20px, 3.5vh, 32px);
    padding-left: clamp(20px, 4vw, 40px);
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .nav-right.active {
    right: 0;
  }

  .nav-link {
    width: fit-content;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    line-height: 1.2;
    text-align: left;
  }

  .nav-right>.nav-link {
    opacity: 0.8 !important;
  }

  .nav-right>.nav-link+.nav-link {
    margin-top: 18px;
    margin-top: clamp(16px, 2.4vh, 24px);
  }

  .nav-right>.nav-page-heading,
  .nav-right>.nav-page-heading+.nav-link {
    margin-top: 18px;
    margin-top: clamp(16px, 2.4vh, 24px);
  }

  .nav-right>.nav-page-heading>.nav-link {
    opacity: 0.8 !important;
  }

  .mobile-menu-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    gap: clamp(12px, 2.4vh, 20px);
    width: 100%;
    margin-top: 30px;
    margin-top: clamp(24px, 4.5vh, 40px);
    padding-top: 20px;
    padding-top: clamp(16px, 3vh, 26px);
    border-top: 1px solid rgba(17, 17, 17, 0.22);
    font-family: 'Inter', sans-serif;
  }

  .mobile-menu-info-block {
    min-width: 0;
  }

  .mobile-menu-info-label {
    margin: 0 0 6px;
    margin-bottom: clamp(5px, 0.9vh, 7px);
    color: var(--text-color);
    opacity: 0.8;
    font-size: clamp(0.78rem, 2.4vw, 0.95rem);
    font-weight: 500;
    line-height: 1.2;
  }

  .mobile-menu-info-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: var(--text-color);
    font-size: clamp(0.78rem, 2.4vw, 0.95rem);
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    opacity: 0.55;
    overflow-wrap: anywhere;
  }

  .mobile-menu-info-link+.mobile-menu-info-link {
    margin-top: 4px;
  }

  @media (min-width: 600px) {
    .mobile-menu-details {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 6vw;
      row-gap: 26px;
    }
  }

  @media (max-height: 600px) {
    .mobile-menu-details {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 5vw;
    }
  }


  /* Hero Responsive */
  .content .hero-section {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    padding: 100px 4vw 60px !important;
    text-align: center !important;
    position: relative !important;
  }

  .content .hero-section .hero-text-wrapper {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto 2rem auto !important;
  }

  .content .hero-section .hero-name {
    position: relative !important;
    display: block !important;
    font-size: 11vw !important;
    white-space: normal !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    width: fit-content !important;
    margin: 0 0 1rem 0 !important;
  }

  .content .hero-section .labels-container {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    gap: clamp(4px, 1.5vw, 14px) !important;
    margin: 0 0 3rem 0 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .content .hero-section .label {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    font-size: clamp(0.68rem, 2.9vw, 1.6rem) !important;
    letter-spacing: clamp(0.04em, 0.4vw, 0.18em) !important;
    opacity: 0.92 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: baseline !important;
    flex-shrink: 0 !important;
  }

  /* Image Container */
  .content .hero-section .image-container {
    position: relative !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    transform: translateY(-10%) !important;
    width: 100vw !important;
    margin-left: -4vw !important;
    margin-right: -4vw !important;
    height: auto !important;
    max-width: 100vw !important;
    aspect-ratio: 8 / 9 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
  }

  .content .hero-section .slide-1 {
    background-position: left center !important;
  }

  .content .hero-section .slide-4 {
    background-position: left center !important;
  }

  .content .hero-section .scroll-indicator {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    width: fit-content !important;
    margin: calc(-11.25vw + 12px + 5vh) auto 0 !important;
  }

  /* Carosello partner */
  .partners-section {
    padding: 4vw 0;
  }

  .partners-track-group {
    gap: 12vw;
    padding-right: 12vw;
  }

  .partner-link {
    height: 30px;
  }

  /* Footer Mobile */
  .footer-header-area {
    margin-top: 15vh;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-header-line {
    display: none;
  }

  .footer-header-right {
    text-align: center;
  }

  .footer-top-area {
    flex-direction: column;
    align-items: center;
  }

  .footer-content-left,
  .footer-content-center,
  .footer-content-right {
    width: 100%;
    text-align: center;
    align-items: center;
    gap: 30px;
  }

  .footer-content-center .footer-social-group,
  .footer-content-right .footer-contact-group {
    align-items: center;
    text-align: center;
  }


  .about-section {
    padding: 80px 4vw;
  }

  .about-container {
    width: 92vw;
  }

  .about-top-bar {
    margin-bottom: 40px;
  }

  .top-bar-black {
    width: 40px;
    height: 20px;
  }

  .top-bar-line {
    margin: 0 10px;
  }

  .top-bar-text {
    font-size: 0.8rem;
    margin-right: 10px;
    white-space: normal;
  }

  .top-bar-green {
    width: 20px;
    height: 20px;
  }

  .about-grid-new {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-left-col-new {
    order: 1;
  }

  .about-right-col-new {
    order: 2;
    padding-top: 0;
  }

  .about-publications-section-new {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
  }

  .pub-left-col {
    order: 1;
  }

  .pub-right-col {
    order: 2;
    padding-top: 0;
  }

  .about-image-wrapper {
    max-width: 100%;
  }

  .about-title-new {
    margin-bottom: 20px;
  }

  .about-title-new .name-first {
    font-size: 3.5rem;
  }

  .about-title-new .name-last {
    font-size: 3.3rem;
  }

  .about-intro-text {
    margin-bottom: 30px;
  }

  .about-decorative-image-new {
    margin-top: 30px;
    margin-left: 0;
    justify-content: center;
  }

  .about-decorative-image-new img {
    width: 85%;
    max-width: 350px;
  }
}

/* --- CITAZIONI  --- */
.quotes-section {
  background-color: var(--bg-color);
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 15;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: none;
  padding-top: calc(var(--nav-height) + 20px);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --card-width: clamp(68px, 6.4vw, 130px);
  --card-height: clamp(68px, 6.4vw, 130px);
  --card-spacing: clamp(140px, 12vw, 240px);
  --carousel-y: 17vh;
}

.quotes-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.quotes-arch-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.quotes-arch {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0 auto;
  transform: none;
}

.author-card {
  position: absolute;
  left: 50%;
  top: var(--carousel-y, 25vh);
  width: var(--card-width);
  height: var(--card-height);
  border-radius: 0;
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: var(--card-opacity, 1);
  transform: translate3d(calc(var(--card-x) * var(--card-spacing) - var(--card-width) / 2),
      calc(-1 * var(--card-height) / 2),
      0) scale(var(--card-scale, 1));
  z-index: var(--card-z-index, 1);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-card:hover {
  transform: translate3d(calc(var(--card-x) * var(--card-spacing) - var(--card-width) / 2),
      calc(-1 * var(--card-height) / 2),
      0) scale(calc(var(--card-scale, 1) * 1.08));
}





.card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/* Testo citazioni */
.quote-content-wrapper {
  position: absolute;
  left: 50%;
  top: 58vh;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: clamp(940px, 58vw, 1300px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  padding: 0 4vw;
  pointer-events: auto;
}

.desktop-only {
  display: inline;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

.quote-author {
  font-family: 'OSWALD', sans-serif;
  font-size: clamp(1.1rem, 1.4vw, 2.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: transparent;
  background: linear-gradient(to right, var(--verde-boschiroli) 50%, var(--text-color) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.8rem;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.quotes-section.autoplay-running .quote-author.fill-animation {
  animation: quoteAuthorFill 7s linear forwards;
}

@keyframes quoteAuthorFill {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* Quadratini navigazione per più citazioni */
.quote-dots-container {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.quote-dot {
  width: 6px;
  height: 6px;
  background-color: #000;
  opacity: 0.5;
  transition: background-color 0.4s ease, opacity 0.4s ease;
}

.quote-dot.active {
  background-color: var(--verde-boschiroli);
  opacity: 1;
}

.quote-text-container {
  margin-top: 5vh;
  height: clamp(240px, 17vh, 340px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.quote-text {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: 300;
  text-align: center;
  margin: 0;
  text-wrap: balance;
  /*  Vedove e orfane */
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.quote-author.fade-out,
.quote-text.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.quote-dots-container.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.quote-author.fade-in,
.quote-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.quote-dots-container.fade-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pulsanti di navigazione citazioni */
.quote-nav-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  height: 52px;
  z-index: 25;
  position: relative;
  top: -5vh;
}

.quote-nav-btn {
  pointer-events: auto;
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.55);
  width: clamp(48px, 3.2vw, 68px);
  height: clamp(48px, 3.2vw, 68px);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  outline: none;
  cursor: pointer;
}

.quote-nav-btn svg {
  width: 20px;
  height: 20px;
  color: currentColor;
  transition: none;
}

.quote-nav-btn:hover {
  border-color: rgba(17, 17, 17, 0.5);
  color: var(--text-color);
  background-color: rgba(17, 17, 17, 0.05);
  transform: none;
}

.prev-btn:hover svg,
.next-btn:hover svg {
  transform: none;
}

.quote-nav-btn:active {
  transform: none;
}

.play-pause-btn .play-icon {
  display: block;
}

.play-pause-btn .pause-icon {
  display: none;
}

.quotes-section.autoplay-running .play-pause-btn .play-icon {
  display: none;
}

.quotes-section.autoplay-running .play-pause-btn .pause-icon {
  display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .quotes-section {
    --card-width: clamp(88px, 22vw, 120px);
    --card-height: clamp(88px, 22vw, 120px);
    --card-spacing: clamp(120px, 31vw, 190px);
    --carousel-y: 13vh;
    height: 100vh;
    border-top: none;
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 20px;
  }

  .quotes-container {
    height: 100%;
    overflow: hidden;
    justify-content: flex-start;
  }

  .quotes-arch-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
  }

  .author-card {
    border-radius: 0 !important;
  }

  .card-initial {
    font-size: 0.8rem !important;
  }

  .quote-content-wrapper {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    padding: 0 6vw;
    margin-top: 0;
  }

  .quote-text-container {
    height: 200px;
    margin-bottom: 1rem;
  }

  .quote-author {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    height: 25px;
  }

  .quote-dots-container {
    top: 34px;
  }

  .quote-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.6rem;
    height: 44px;
    position: relative;
    top: 12vh;
    transform: none;
    padding: 0;
    width: auto;
  }

  .quote-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* --- Schermi grandi (27" in su) --- */
@media (min-width: 1600px) {
  .quotes-container {
    max-width: 100%;
  }

  .quote-content-wrapper {
    top: 53vh;
    width: 61vw;
    max-width: 1600px;
    z-index: 30;
  }

  .quote-text-container {
    height: clamp(260px, 18vh, 360px);
    margin-bottom: 2rem;
  }

  .quote-nav-buttons {
    top: 4vh;
  }

  /* Percorsi */
  #percorsi .about-container {
    max-width: none;
    width: 92vw;
  }

  #percorsi .percorsi-grid-intro {
    max-width: 1800px;
  }

  #dove-ricevo .about-container {
    max-width: none;
    width: 92vw;
  }

  #dove-ricevo .dove-ricevo-grid-intro,
  #dove-ricevo .dove-ricevo-address-row {
    max-width: 1800px;
  }
}

/* --- PERCORSI ACCORDION --- */
.percorsi-list-wrapper {
  margin-top: 4vw;
  width: 100%;
}

.percorsi-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.accordion-item {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  width: 100%;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}



.accordion-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.2rem, 2vw, 3rem) 0;
  cursor: pointer;
  user-select: none;
  font-size: clamp(1.25rem, 1.85vw, 2.45rem);
}

.accordion-title {
  font-family: 'OSWALD', sans-serif;
  font-size: clamp(1.25rem, 1.85vw, 2.45rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-color);
  opacity: 0.35;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: inline-block;
}

.accordion-header:hover .accordion-title,
.accordion-item.active .accordion-title {
  opacity: 1;
  color: var(--text-color);
}

.accordion-header::after {
  content: '';
  position: absolute;
  left: calc(var(--title-width, 150px) + 1.5vw);
  bottom: calc(clamp(1.2rem, 2vw, 3rem) + 0.28em);
  transform: scaleX(0);
  transform-origin: left;
  width: clamp(16px, 1.5vw, 32px);
  height: clamp(8px, 0.75vw, 16px);
  background-color: var(--verde-boschiroli);
  opacity: 0;
  pointer-events: none;
  border-radius: 0;
  transition: opacity 0.3s ease;
}

.accordion-item:not(.active) .accordion-header:hover::after {
  animation: dashAndMorph 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  opacity: 1;
}

@keyframes dashAndMorph {
  0% {
    left: calc(var(--title-width, 150px) + 1.5vw);
    transform: scale(0.8);
    opacity: 0;
    width: clamp(16px, 1.5vw, 32px);
    height: clamp(8px, 0.75vw, 16px);
    background-color: var(--verde-boschiroli);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    left: calc(100% - clamp(8px, 0.75vw, 16px));
    transform: scale(1);
    opacity: 1;
    width: clamp(8px, 0.75vw, 16px);
    height: clamp(8px, 0.75vw, 16px);
    background-color: #111;
  }
}

.accordion-info-label {
  position: absolute;
  right: calc(clamp(8px, 0.75vw, 16px) + 1.2vw);
  bottom: clamp(1.2rem, 2vw, 3rem);
  transform: translateX(10px);
  font-family: 'OSWALD', sans-serif;
  font-size: clamp(1.25rem, 1.85vw, 2.45rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--verde-boschiroli);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
}

.accordion-item:not(.active) .accordion-header:hover .accordion-info-label {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease 1.35s, transform 0.5s cubic-bezier(0.76, 0, 0.24, 1) 1.35s;
}



.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content-inner {
  width: 100%;
  padding: 0 0 clamp(1.2rem, 2vw, 3rem) 0;
}

.accordion-content-inner p {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(0.85rem, 1.15vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.85;
  margin: 0;
  max-width: min(850px, 92%);
}

@media (min-width: 769px) {
  .accordion-item {
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 0 9vw;
    align-items: start;
  }

  .accordion-header {
    grid-column: 1 / span 2;
    grid-row: 1;
    width: 100%;
    z-index: 2;
    pointer-events: auto;
  }

  .accordion-content {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    padding-top: clamp(1.2rem, 2vw, 3rem);
  }
}

@media (max-width: 768px) {
  .accordion-header {
    padding: 1.5rem 0;
  }

  .accordion-header:hover {
    padding-left: 0;
  }

  .accordion-content-inner {
    display: block;
    padding: 0 0 1.5rem 0;
  }

  .accordion-content-inner p {
    grid-column: auto;
    max-width: 100%;
  }

  .accordion-title {
    font-size: 1.15rem;
    line-height: 1.4;
    padding-right: 15px;
  }
}

@media (min-width: 769px) {
  .percorsi-grid-intro {
    align-items: flex-end;
  }
}

.percorsi-intro-text {
  margin-bottom: 0.15vw;
  line-height: 1.52;
  text-wrap: pretty;
}

.dove-ricevo-intro-text {
  margin-bottom: -0.3vw !important;
  line-height: 1.52;
}

.address-link-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.25rem);
  font-weight: 500;
  margin-top: auto;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.address-link-wrapper .address-arrow {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transform: translateY(-0.06em);
  transition: transform 0.3s ease, color 0.3s ease;
}

.address-link-wrapper .location-icon {
  width: clamp(20px, 1.5vw, 26px);
  height: clamp(20px, 1.5vw, 26px);
  color: var(--verde-boschiroli);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.address-link-wrapper .address-text {
  position: relative;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.address-link-wrapper .address-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background-color: var(--verde-boschiroli);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effetti Hover */
.address-link-wrapper:hover {
  opacity: 1;
  color: var(--verde-boschiroli);
}

.address-link-wrapper:hover .address-arrow {
  transform: translate(3px, -3px);
}

.address-link-wrapper:hover .location-icon {
  transform: translateY(-4px) scale(1.12);
}

.address-link-wrapper:hover .address-text::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .address-link-wrapper {
    margin-top: 20px;
    align-self: center;
    justify-content: center;
  }
}

/* Dove Ricevo  */
@media (min-width: 769px) {
  .dove-ricevo-grid-intro {
    align-items: flex-end;
  }
}

/* --- DOVE RICEVO FOTO STUDIO --- */
.studio-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  width: 100%;
}

.gallery-left {
  position: relative;
  height: 100%;
}

.gallery-right {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.gallery-left img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-right img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-right img:nth-child(1) {
  aspect-ratio: 5 / 4;
}

.gallery-right img:nth-child(2) {
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
  .studio-gallery-grid {
    grid-template-columns: 1fr;
    gap: 4vw;
  }

  .gallery-right {
    gap: 4vw;
  }

  .gallery-left img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* HOVER DISATTIVATI SU MOBILE */
@media (max-width: 1024px) {
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--verde-boschiroli);
  }

  .nav-link:hover {
    opacity: 0.4;
  }

  .nav-left:hover .nav-brand,
  .nav-brand:hover {
    opacity: 0.4;
  }

  .nav-link:hover span,
  .nav-left:hover .nav-brand span,
  .nav-brand:hover span,
  .label span:hover::before {
    animation: none;
    animation-delay: 0s;
  }

  .partners-track:hover {
    animation-play-state: running;
  }

  .partner-link:hover {
    opacity: 0.5;
  }

  .footer-link-item:hover {
    opacity: 1;
  }

  .footer-info-link:hover {
    color: var(--text-color) !important;
  }

  .footer-signature-link:hover {
    color: var(--verde-boschiroli);
  }

  .footer-signature-link:hover::after {
    width: 0;
    left: 50%;
  }

  body:has(.footer-signature-link:hover) {
    --bg-color: #F8F8F6;
  }

  body:has(.footer-signature-link:hover) .site-footer-new,
  body:has(.footer-signature-link:hover) .partners-section,
  body:has(.footer-signature-link:hover) .content-section {
    background-color: var(--bg-color);
  }

  body:has(.footer-signature-link:hover) .navbar {
    background-color: rgba(248, 248, 246, 0.75);
  }

  .author-card:hover {
    transform: translate3d(calc(var(--card-x) * var(--card-spacing) - var(--card-width) / 2),
        calc(-1 * var(--card-height) / 2),
        0) scale(var(--card-scale, 1));
  }

  .quote-nav-btn:hover {
    border-color: rgba(17, 17, 17, 0.12);
    color: rgba(17, 17, 17, 0.55);
    background-color: transparent;
    transform: none;
  }

  .accordion-item:not(.active) .accordion-header:hover .accordion-title {
    opacity: 0.35;
    color: var(--text-color);
  }

  .accordion-item:not(.active) .accordion-header:hover::after {
    animation: none;
    opacity: 0;
    transform: scaleX(0);
  }

  .accordion-item:not(.active) .accordion-header:hover .accordion-info-label {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
  }

  .address-link-wrapper:hover {
    opacity: 0.8;
    color: var(--text-color);
  }

  .address-link-wrapper:hover .address-arrow {
    transform: translateY(-0.06em);
  }

  .address-link-wrapper:hover .location-icon {
    transform: none;
  }

  .address-link-wrapper:hover .address-text::after {
    transform: scaleX(0);
  }

  .custom-cursor-dot,
  .custom-cursor-square {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body:has(.footer-signature-link:hover) .navbar {
    background-color: var(--bg-color);
  }
}

/* --- CHI SONO: Responsive  --- */
@media (max-width: 1024px) {

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  #chi-sono {
    padding-top: clamp(120px, 15vw, 160px) !important;
    padding-right: 0;
    padding-bottom: clamp(64px, 9vw, 96px);
    padding-left: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  #chi-sono .about-container {
    width: calc(100% - 8vw);
    max-width: none;
    margin-right: 4vw;
    margin-left: 4vw;
  }

  #chi-sono .about-top-bar-wrapper {
    padding-right: 4vw;
    padding-left: 4vw;
  }

  #chi-sono .about-top-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(16px, 3vw, 32px);
  }

  #chi-sono .top-bar-right-group {
    display: contents;
  }

  #chi-sono .top-bar-text {
    min-width: 0;
    margin-right: 0;
    text-align: left;
  }

  #chi-sono .about-grid-new,
  #chi-sono .about-publications-section-new {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5vw;
  }

  #chi-sono .about-left-col-new,
  #chi-sono .about-right-col-new,
  #chi-sono .pub-left-col,
  #chi-sono .pub-right-col,
  #chi-sono .pub-content {
    min-width: 0;
  }

  #chi-sono .about-right-col-new,
  #chi-sono .pub-right-col {
    width: 100%;
    max-width: none;
  }

  #chi-sono .about-intro-text br,
  #chi-sono .about-text-blocks br {
    display: none;
  }

  #chi-sono .about-intro-text,
  #chi-sono .about-text-blocks p {
    font-size: clamp(0.95rem, 1.75vw, 1.08rem);
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  #chi-sono .about-intro-text {
    margin-bottom: clamp(36px, 6vw, 64px);
  }

  #chi-sono .about-title-new {
    margin-bottom: clamp(48px, 7vw, 72px);
  }

  #chi-sono .about-image-wrapper {
    width: calc(100% - 1vw);
    max-width: 100%;
  }

  #chi-sono .about-decorative-image-new {
    width: 100%;
    margin-left: 0;
  }

  #chi-sono .about-decorative-image-new img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  #chi-sono .pub-list-new li,
  #chi-sono .pub-title,
  #chi-sono .pub-authors,
  #chi-sono .pub-publisher {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-container,
  .footer-info-container {
    max-width: 100%;
  }

  .footer-link-item {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {

  #chi-sono .about-grid-new,
  #chi-sono .about-publications-section-new {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(42px, 7vw, 64px);
  }

  #chi-sono .about-title-new {
    margin-bottom: clamp(28px, 5vw, 48px);
  }

  #chi-sono .about-image-wrapper {
    width: min(100% - 1vw, 680px);
  }

  #chi-sono .about-right-col-new,
  #chi-sono .pub-right-col {
    max-width: 760px;
  }

  #chi-sono .about-publications-section-new {
    margin-top: clamp(32px, 5vw, 48px);
  }

  #chi-sono .about-decorative-image-new {
    justify-content: flex-start;
    margin-top: clamp(28px, 5vw, 48px);
  }

  #chi-sono .about-decorative-image-new img {
    width: min(72%, 480px);
  }

  #chi-sono .pub-list-new {
    gap: clamp(42px, 7vw, 64px);
  }
}

@media (max-width: 768px) {
  #chi-sono {
    padding-top: calc(var(--nav-height) + 40px) !important;
    padding-right: 0;
    padding-bottom: 64px;
    padding-left: 0;
  }

  #chi-sono .about-top-bar {
    column-gap: 18px;
    margin-bottom: 0;
  }

  #chi-sono .top-bar-right-group {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-width: 0;
  }

  #chi-sono .top-bar-black {
    width: 32px;
    height: 16px;
  }

  #chi-sono .top-bar-text {
    min-width: 0;
    margin-right: 0;
    font-size: clamp(0.7rem, 3vw, 0.82rem);
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #chi-sono .top-bar-green {
    width: 16px;
    height: 16px;
  }

  #chi-sono .top-bar-line {
    margin: 12px 4vw clamp(44px, 12vw, 64px);
  }

  #chi-sono .about-grid-new,
  #chi-sono .about-publications-section-new {
    gap: 40px;
  }

  #chi-sono .title-top-row {
    white-space: normal;
  }

  #chi-sono .about-title-new .dott {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }

  #chi-sono .about-title-new .name-first {
    font-size: clamp(2.6rem, 14vw, 3.5rem);
  }

  #chi-sono .about-title-new .name-last {
    font-size: clamp(2.45rem, 13.2vw, 3.3rem);
  }

  #chi-sono .about-image-wrapper {
    width: calc(100% - 1vw);
    margin-left: 1vw;
  }

  #chi-sono .img-square-green {
    top: -8px;
    left: -8px;
  }

  #chi-sono .img-square-black {
    right: -8px;
    bottom: -8px;
  }

  #chi-sono .about-intro-text,
  #chi-sono .about-text-blocks p {
    font-size: clamp(0.94rem, 4vw, 1.04rem);
    line-height: 1.65;
  }

  #chi-sono .about-text-blocks {
    gap: 1.35rem;
  }

  #chi-sono .about-divider-line {
    margin: 64px 4vw 0;
  }

  #chi-sono .pub-label {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  #chi-sono .about-decorative-image-new img {
    width: min(82%, 360px);
  }

  #chi-sono .pub-list-new {
    gap: 42px;
  }

  #chi-sono .pub-list-new li {
    font-size: clamp(0.94rem, 4vw, 1.04rem);
    line-height: 1.6;
  }

  #chi-sono .pub-year {
    margin-bottom: 10px;
  }

  #chi-sono .pub-content {
    gap: 5px;
  }

  .footer-info-left,
  .footer-info-center,
  .footer-info-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* --- PERCORSI: Responsive --- */
@media (max-width: 1024px) {
  #percorsi {
    padding-right: 0;
    padding-left: 0;
    overflow-x: clip;
  }

  #percorsi .about-top-bar-wrapper {
    padding-right: 4vw;
    padding-left: 4vw;
  }

  #percorsi .top-bar-line {
    margin-right: 4vw;
    margin-left: 4vw;
  }

  #percorsi .about-container {
    width: calc(100% - 8vw);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  #percorsi .percorsi-grid-intro,
  #percorsi .about-left-col-new,
  #percorsi .about-right-col-new,
  #percorsi .percorsi-list-wrapper,
  #percorsi .percorsi-accordion,
  #percorsi .accordion-item,
  #percorsi .accordion-header,
  #percorsi .accordion-content,
  #percorsi .accordion-content-inner {
    min-width: 0;
    max-width: 100%;
  }

  #percorsi .about-right-col-new,
  #percorsi .percorsi-grid-intro,
  #percorsi .percorsi-list-wrapper,
  #percorsi .percorsi-accordion {
    width: 100%;
  }

  #percorsi .about-title-new,
  #percorsi .about-title-new .name-last,
  #percorsi .percorsi-intro-text,
  #percorsi .accordion-title,
  #percorsi .accordion-content-inner p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #percorsi .percorsi-intro-text,
  #percorsi .accordion-info-label,
  #percorsi .accordion-content-inner p {
    font-size: clamp(0.95rem, 1.75vw, 1.08rem);
    line-height: 1.65;
  }

  #percorsi .accordion-title {
    font-size: clamp(0.95rem, 1.75vw, 1.08rem) !important;
    line-height: 1.65;
  }

  #percorsi .percorsi-intro-text br {
    display: none;
  }

  #percorsi .accordion-item.active .accordion-title {
    color: var(--verde-boschiroli);
  }
}

@media (max-width: 768px) {
  #percorsi .percorsi-grid-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  #percorsi .top-bar-right-group {
    min-width: 0;
  }

  #percorsi .top-bar-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #percorsi .percorsi-intro-text,
  #percorsi .accordion-info-label,
  #percorsi .accordion-content-inner p {
    font-size: clamp(0.94rem, 4vw, 1.04rem);
    line-height: 1.65;
  }

  #percorsi .accordion-title {
    font-size: clamp(0.94rem, 4vw, 1.04rem) !important;
    line-height: 1.65;
  }
}

/* --- DOVE RICEVO: Responsive --- */
@media (max-width: 1024px) {
  #dove-ricevo .dove-ricevo-grid-intro>.about-right-col-new {
    width: 100%;
    max-width: 100%;
  }

  #dove-ricevo .dove-ricevo-grid-pinerolo>.about-right-col-new {
    width: calc(100% + 2vw);
    max-width: calc(100% + 2vw);
  }

  #dove-ricevo .dove-ricevo-intro-text {
    font-size: clamp(0.95rem, 1.75vw, 1.08rem);
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  #dove-ricevo .dove-ricevo-intro-text br {
    display: none;
  }

  #dove-ricevo .dove-ricevo-address-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #dove-ricevo .dove-ricevo-address-row>.about-right-col-new {
    display: none;
  }

  #dove-ricevo .address-link-wrapper,
  #dove-ricevo .address-link-wrapper:hover {
    align-self: flex-start;
    justify-content: flex-start;
    color: var(--text-color);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    text-align: left;
    text-decoration-line: underline;
    text-decoration-color: rgba(17, 17, 17, 0.3);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    opacity: 1;
  }

  #dove-ricevo .address-link-wrapper .address-text::after,
  #dove-ricevo .address-link-wrapper:hover .address-text::after {
    display: none;
  }

  #dove-ricevo .dove-ricevo-address-row+.studio-gallery-container {
    margin-top: clamp(8px, 1.2vw, 12px) !important;
  }
}

@media (max-width: 768px) {
  #dove-ricevo .dove-ricevo-grid-intro .address-link-wrapper {
    margin-top: 0;
  }

  #dove-ricevo .dove-ricevo-intro-text {
    font-size: clamp(0.94rem, 4vw, 1.04rem);
    line-height: 1.65;
  }
}

@media (max-width: 1024px) {

  #percorsi.about-section,
  #dove-ricevo.about-section,
  #contatti.about-section {
    padding-top: clamp(120px, 15vw, 160px) !important;
    padding-right: 0;
    padding-left: 0;
  }

  #percorsi.about-section .about-top-bar-wrapper,
  #dove-ricevo.about-section .about-top-bar-wrapper,
  #contatti.about-section .about-top-bar-wrapper {
    padding-right: 4vw;
    padding-left: 4vw;
  }

  #percorsi.about-section .about-top-bar,
  #dove-ricevo.about-section .about-top-bar,
  #contatti.about-section .about-top-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(16px, 3vw, 32px);
  }

  #percorsi.about-section .top-bar-right-group,
  #dove-ricevo.about-section .top-bar-right-group,
  #contatti.about-section .top-bar-right-group {
    display: contents;
  }

  #percorsi.about-section .top-bar-text,
  #dove-ricevo.about-section .top-bar-text,
  #contatti.about-section .top-bar-text {
    min-width: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 768px) {

  #percorsi.about-section,
  #dove-ricevo.about-section,
  #contatti.about-section {
    padding-top: calc(var(--nav-height) + 40px) !important;
  }

  #percorsi.about-section .about-top-bar,
  #dove-ricevo.about-section .about-top-bar,
  #contatti.about-section .about-top-bar {
    column-gap: 18px;
    margin-bottom: 0;
  }

  #percorsi.about-section .top-bar-black,
  #dove-ricevo.about-section .top-bar-black,
  #contatti.about-section .top-bar-black {
    width: 32px;
    height: 16px;
  }

  #percorsi.about-section .top-bar-text,
  #dove-ricevo.about-section .top-bar-text,
  #contatti.about-section .top-bar-text {
    font-size: clamp(0.7rem, 3vw, 0.82rem);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #percorsi.about-section .top-bar-green,
  #dove-ricevo.about-section .top-bar-green,
  #contatti.about-section .top-bar-green {
    width: 16px;
    height: 16px;
  }

  #percorsi.about-section .top-bar-line,
  #dove-ricevo.about-section .top-bar-line,
  #contatti.about-section .top-bar-line {
    margin: 12px 4vw clamp(44px, 12vw, 64px);
  }
}

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

  .nav-left {
    gap: 10px;
  }

  .nav-brand {
    font-size: 0.8rem;
  }

  #chi-sono .about-title-new .dott {
    margin-right: 0.2em;
  }

  #chi-sono .about-title-new .name-first {
    font-size: 13.5vw;
  }

  #chi-sono .about-title-new .name-last {
    font-size: 12.7vw;
  }

  .footer-link-item {
    font-size: 15px;
  }
}

/* Tablet touch in orientamento orizzontale */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
  .content .hero-section .hero-text-wrapper {
    top: calc(var(--nav-height) + clamp(20px, 3vh, 32px)) !important;
  }

  .quotes-section .quote-nav-buttons {
    top: calc(-5vh - clamp(20px, 3vh, 32px));
  }

  #chi-sono .about-publications-section-new {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #chi-sono .pub-left-col,
  #chi-sono .pub-right-col,
  #chi-sono .pub-content {
    min-width: 0;
  }

  #chi-sono .about-decorative-image-new {
    width: 100%;
    margin-left: 0;
  }

  #chi-sono .about-decorative-image-new img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
