:root {
  --font-base: "swiss-721", sans-serif;
  --font-accent: "Lito", sans-serif;
  --color-text: #000;
  --color-bg: #fff;
  --color-overlay: #fff;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius-pill: 999px;
}

/* =========================
   Base
========================= */
body {
  font-family: var(--font-base);
  font-weight: 300;
  font-style: normal;
  color: var(--color-text);
  background: var(--color-bg);
}

header {
  width: 100%;
}













@font-face {
  font-family: "Lito";
  src:
    url("../font/Lito-Regular.woff2") format("woff2"),
    url("../font/Lito-Regular.woff") format("woff"),
    url("../font/Lito-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}




/* =========================
   Header / Navigation
========================= */
.site-header__bar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  padding: var(--space-0) var(--space-5) var(--space-8);
  position: relative;
  box-sizing: border-box;
}

.site-header__menu-toggle {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  margin-left: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-header__menu-toggle.menu-text {
  width: auto;
  height: auto;
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  text-transform: none;
}

.site-header__menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2000;
}

.site-header__menu-overlay.is-open {
  display: block;
}

.site-header__menu-panel {
  width: 100%;
  height: 100%;
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.site-header__menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.site-header__menu-link {
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  text-align: left;
  height: auto;
}

.site-header__menu-close {
  align-self: flex-end;
  font-size: 0;
  line-height: 1;
}

.site-header__menu-close-icon {
  width: 28px;
  height: 28px;
  display: block;
}


.filter-bar {
  padding: 3rem 0 0;
  align-self: flex-start;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-text);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: transparent;
  display: inline-block;
  position: relative;
}

.filter-option input[type="checkbox"]:checked {
  background: var(--color-text);
}

/* Sfondo unico dietro i bottoni */
.site-header__nav {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 2rem 0 0;
  margin: 0;
  align-self: flex-start;
  transform: translateY(2px);
}

/* Bottoni */
.btn-link {
  background: transparent; /* trasparenti sopra sfondo unico */
  border: none;
  color: var(--color-text);
  padding-right: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  text-transform: none;
}

.site-header__bar .btn-link,
.site-header__bar .site-header__logo {
  padding-right: 0;
}

.site-header__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 1rem;
  height: auto;
  font-size: 3.5rem;
  font-weight: 500;
  text-transform: none;
  font-family: "swiss-721-bt-cond-outline", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 0.95;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2rem;
}

.site-header__logo-top,
.site-header__logo-bottom {
  display: block;
}

@media (min-width: 1024px) {
  .gastro-page .site-header__bar {
    align-items: baseline;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }

  .gastro-page .site-header__logo {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    line-height: 1;
    font-size: 2.8rem;
  }

  .gastro-page .site-header__logo-top,
  .gastro-page .site-header__logo-bottom {
    display: inline;
  }

  .gastro-page .site-header__nav {
    flex-direction: row;
    align-items: baseline;
    gap: 1.25rem;
    transform: none;
    align-self: baseline;
  }

}

@media (max-width: 767px) {
  .gastro-page .site-header__bar {
    padding-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .gastro-page #descrizione .project-copy__label,
  .gastro-page #descrizione .project-copy {
    font-size: 17px;
    line-height: 1.4;
  }

  #gastro #photo {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #gastro #photo::-webkit-scrollbar {
    display: none;
  }

  #gastro #photo > .grid {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  #gastro #photo img {
    width: auto;
    max-height: 375px;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

@media (min-width: 768px) {
  #gastro #photo {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #gastro #photo::-webkit-scrollbar {
    display: none;
  }

  #gastro #photo > .grid {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  #gastro #photo img {
    width: auto;
    max-height: 600px;
    height: auto;
    display: block;
  }
}

.site-header__menu-inline {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.site-header__menu-inline-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0;
}



/* Bottone attivo */
.btn-link.active {
  color: #1a1a1a;
}


/* Sezioni */
.section {
  display: grid;
  margin-top: 0rem;
  scroll-margin-top: 80px; /* altezza navbar */
}

.section.hidden {
  display: none;
}

#blog.section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  margin-top: 3rem;
}

#blog.section.hidden {
  display: none;
}



/* MAIN OFFSET */
.page {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}



/* ===== GRID GAP (Tailwind gestisce display/colonne) ===== */
.l-grid-gap {
  gap: 1.25rem;
}

#projects .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  margin-top: 1.5rem;
}


@media (max-width: 767px) {
  #projects .project-grid {
    row-gap: 1rem;
  }
}

#home.section {
  row-gap: 0;
  margin-top: 0;
}

.home-cta {
  margin-top: 2rem;
  margin-bottom: 0;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .home-cta {
    margin-top: 6rem;
  }
}

.home-cta-btn {
  color: #fff;
  padding: 0;
  font-size: large;
  margin-bottom: 2rem;
}

.home-video-cta {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  z-index: 2;
}

@media (min-width: 768px) {
  .home-video-cta {
    right: 5rem;
  }
}

.home-video-cta .home-cta-btn {
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-cta-arrow {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.home-cta-icon {
  width: 0.9em;
  height: 0.9em;
  display: block;
}

.home-seemore-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.home-project-cards {
  margin-top: 3.5rem;
  padding-top: 0;
}

.home-project-cards .project-card {
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease;
}

.home-project-cards .project-card__meta {
  margin-top: 0.8rem;
  margin-bottom: 0;
  order: 1;
}

.home-project-cards .project-card__meta span {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.2;
}

.home-card-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  font-style: normal;
  margin-top: 0.2rem;
}

.home-project-cards .project-card__media,
.home-project-cards .reveal-wrap {
  order: 0;
}

.home-project-cards .project-card__media,
.home-project-cards .reveal-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-project-cards .project-card__media img,
.home-project-cards .reveal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-project-cards .home-lito-fit-card .project-card__media,
.home-project-cards .home-lito-fit-card .reveal-wrap {
  background: #000;
}

.home-project-cards .home-lito-fit-card .project-card__media img,
.home-project-cards .home-lito-fit-card .reveal-wrap img {
  object-fit: contain;
  background: #000;
}

.home-project-cards-grid {
  row-gap: 1rem;
  column-gap: 1.5rem;
}

@media (min-width: 1024px) {
  body.home-page .home-project-cards-grid {
    row-gap: 3rem;
    column-gap: 1.5rem;
  }
}

.home-more-projects {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .home-more-projects {
    margin-top: 0;
    overflow: hidden;
    height: 0;
    transition: height 760ms cubic-bezier(0.22, 1, 0.36, 1), margin-top 760ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: height, margin-top;
  }

  .home-more-projects.is-open {
    margin-top: 3rem;
  }
}

.home-seemore-btn {
  border: 1px solid #000;
  border-radius: 999px;
  padding: 0.59rem 1.25rem 0.41rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  background: transparent;
  color: #000;
  transition: background-color 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-seemore-btn:hover {
    background: #000;
    color: #fff;
  }

  .home-seemore-btn[aria-expanded="true"]:hover {
    background: #000;
    color: #fff;
    border-color: #000;
  }
}

.home-seemore-btn:active,
.home-seemore-btn[aria-expanded="true"] {
  background: transparent;
  color: #000;
  border-color: #000;
}

.home-seemore-btn:focus-visible,
.home-blog-nav:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}


/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .l-grid-gap {
    gap: 0.5rem; /* più piccolo tra gli elementi */
  }
}

/* ===== ITEMS ===== */
.project-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: auto;
}



.project-card__media {
  position: relative; /* hover assoluto solo dentro questa div */
  width: 100%;
}

.project-card__media img {
  width: 100%;
  display: block;
}

.hover-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hover-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}


/* TESTI SOTTO IMMAGINE */


/* Footer base */
.footer {
  width: 100%;
  padding: 2rem 1.25rem 1rem;
  margin-top: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: left;
}

.contact-page .footer {
  padding-top: 1rem;
}


.footer-email {
  padding-top: 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  align-items: center;
}

.footer-links .footer-email,
.footer-links .footer-social,
.footer-links .footer-privacy,
.footer-links .footer-cookies {
  padding-top: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  color: #000;
  text-decoration: none;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.footer-left {
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.footer-newsletter {
  margin-top: 2rem;
  font-family: "swiss-721-bt-cond-outline", sans-serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 0.95;
  margin-left: 0;
  text-align: left;
}

.footer-newsletter-copy {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  max-width: 24rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
}

.footer-newsletter-consent {
  margin-top: 0.5rem;
  max-width: 24rem;
}

.footer-newsletter-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  cursor: pointer;
}

input.footer-newsletter-consent-checkbox[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  accent-color: unset;
  margin: 0;
  padding: 0;
  width: 1em;
  height: 1em;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  background-image: none;
  box-shadow: none;
  outline: none;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

input.footer-newsletter-consent-checkbox[type="checkbox"]:checked {
  background: #000;
  background-image: none;
}

.footer-newsletter-consent-label a {
  color: #000;
  text-decoration: none;
}

input.footer-newsletter-consent-checkbox[type="checkbox"]:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.footer-newsletter-consent.is-invalid .footer-newsletter-consent-label {
  color: #c40000;
}

.footer-newsletter-consent.is-invalid .footer-newsletter-consent-label a {
  color: #c40000;
}

.footer-newsletter-consent.is-invalid input.footer-newsletter-consent-checkbox[type="checkbox"] {
  border-color: #c40000;
}

.footer-newsletter-field.is-invalid .footer-email-input {
  border-bottom-color: #c40000;
}

.footer-newsletter-field.is-invalid .footer-email-input::placeholder {
  color: #c40000;
}

.footer-newsletter-field {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
}

.footer-newsletter-status {
  margin-top: 0.5rem;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #000;
}

.footer-newsletter-status.is-error {
  color: #c40000;
}

@media (max-width: 767px) {
  .footer-newsletter {
    font-size: 1.7rem;
  }

  .footer-newsletter-copy,
  .footer-newsletter-consent,
  .footer-newsletter-field {
    max-width: none;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    order: 1;
  }

  .footer-links .footer-email,
  .footer-links .footer-social,
  .footer-links .footer-privacy,
  .footer-links .footer-cookies {
    padding-top: 0;
  }

  #projects .project-card__meta span {
    font-size: 1rem;
  }

  .footer-left {
    order: 2;
    margin-top: 0.75rem;
  }
}

.footer-email-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #000;
  background: transparent;
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  outline: none;
}

.footer-email-input::placeholder {
  color: #000;
  opacity: 1;
  font-weight: 500;
}

.footer-email-submit {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-email-arrow {
  width: 18px;
  height: 18px;
}

.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  background: #fff;
  border: 1px solid #000;
  padding: 1rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.cookie-banner__text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.35;
}

.cookie-banner__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__btn {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner__btn--accept {
  background: #000;
  color: #fff;
}

.cookie-banner__manage {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d9d9d9;
  display: none;
}

.cookie-banner__manage.is-open {
  display: block;
}

.cookie-banner__option {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.cookie-banner__option-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.3;
}

.cookie-banner__checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0.1rem 0 0;
  width: 1em;
  height: 1em;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  background-image: none;
  box-shadow: none;
  flex: 0 0 auto;
  cursor: pointer;
}

.cookie-banner__checkbox:checked {
  background: #000;
}

.cookie-banner__checkbox:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.cookie-banner__manage .cookie-banner__option:last-of-type {
  margin-bottom: 0.5rem;
}

.cookie-banner__save {
  margin-top: 0.75rem;
}

/* Responsive: mobile */
@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
    height: 100dvh;
  }

  .site-header__bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem 2rem;
  }

  .site-header__logo {
    font-size: 2.4rem;
    padding-right: 0;
    padding-top: 0;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-inline {
    display: none !important;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    margin-top: 0;
  }

  .site-header__menu-overlay {
    display: none !important;
  }

  .menu-open .site-header__logo-bottom {
    display: none;
  }

  .menu-open .site-header__menu-inline {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-bottom: 1rem;
  }

  .menu-open .site-header__menu-inline-link {
    font-family: "swiss-721-bt-cond-outline", sans-serif;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .menu-open .site-header__bar {
    min-height: 100dvh;
    padding-bottom: 1.5rem;
  }

}

@media (min-width: 768px) {
  .site-header__nav .btn-link {
    font-size: 1.1rem;
  }
}

.footer-page-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-page-text {
  font-size: 0.95rem;
}

.home-footer-spacer {
  height: 0;
}

/* Contenitore foto home */


.home-image-container {
  padding-left: 0;
  padding-right: 0;
  margin-top: 1rem;       /* spazio sotto navbar */
  width: 100%;
  display: flex;
}


.full-bleed-home {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background-color: #000;
  position: relative;
}

.full-bleed-home .lito-mockup {
  width: 100%;
  min-height: 1px;
}


.home-video-mobile {
  display: none;
  width: 100%;
  max-height: 700px;
}

.home-video-desktop {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  max-height: 700px;
}

.home-video-mobile-embed {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  display: block;
  max-height: 700px;
}


@media (max-width: 767px) {
  .home-video-desktop {
    display: none;
  }

  .home-video-mobile {
    display: block;
  }

  .home-video-mobile-embed {
    max-height: 600px;
  }
  .full-bleed-home {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .full-bleed-home .home-video-desktop {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .full-bleed-home {
    background-color: #000;
  }

  .home-video-desktop {
    display: none;
  }

  .home-video-mobile {
    display: block;
  }

  .home-video-mobile-embed {
    max-height: 700px;
  }

}

@media (max-width: 767px) {
  body.home-page .home-image-container {
    margin-top: 0.75rem;
  }

  body.home-page .home-video-cta {
    right: 1rem;
    bottom: 1rem;
  }

  body.home-page .home-video-cta .home-cta-btn {
    font-size: 1rem;
  }

  body.home-page .home-seemore-btn,
  body.home-page .home-seemore-btn:hover,
  body.home-page .home-seemore-btn:active,
  body.home-page .home-seemore-btn:focus-visible {
    background: transparent;
    color: #000;
    border-color: #000;
  }

  body.home-page .home-project-cards {
    margin-top: 2.5rem;
  }

  body.home-page .home-project-cards .project-card__meta {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }

  body.home-page .home-project-cards .project-card__meta span,
  body.home-page .home-project-cards .project-card__meta .home-card-subtitle {
    font-size: 1rem;
  }

  body.home-page .home-project-cards .project-card {
    margin-top: 1rem;
  }

  body.home-page .home-project-cards .home-card-subtitle {
    font-size: 0.85rem;
    font-style: italic;
  }

  body.home-page .home-seemore-wrap {
    margin-top: 1.5rem;
  }

  body.home-page .home-more-projects {
    margin-top: 1rem;
  }

  body.home-page .home-blog-title {
    font-size: 1.7rem;
    margin-top: 3.5rem;
  }

  body.home-page .home-blog-cards {
    margin-top: 0.75rem;
  }
}

.home-image-container video {
  width: 100%;
  height: auto;
  display: block;
}

.home-hero-clickable {
  cursor: pointer;
}






@media (max-width: 767px) {
}

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



html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wrapper principale */
body {
  display: flex;
  flex-direction: column;
}

/* Main cresce per prendere spazio disponibile */
main.page {
  flex: 1 0 auto;  /* cresce se il contenuto è poco */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Footer sempre in fondo */
footer.footer {
  flex-shrink: 0; /* non si restringe mai */
}

/* Testo */
.project-copy {
  font-size: 1rem;   /* normalized */
  line-height: 1.2;
  font-weight: 300;
  text-align: left;

}

.project-copy__label {
  font-size: 1rem;
  font-weight: 300;
  text-align: left;
  margin-top: 1rem;
}

.project-copy__title {
  margin-top: 2rem;
}

.project-copy__title {
  margin-top: 0;
  margin-bottom: 0;
}

#descrizione .project-copy,
#descrizione .project-copy__label {
  font-weight: 300;
}

#libro-descrizione .project-copy,
#libro-descrizione .project-copy__label {
  font-weight: 300;
}

#lito-descrizione .project-copy,
#lito-descrizione .project-copy__label {
  font-weight: 300;
}

#lito-descrizione .project-copy {
  font-size: 1rem;
  margin-bottom: 2rem;
}

#shabu-right .project-copy,
#shabu-right .project-copy__label {
  font-weight: 300;
}

#cooking-descrizione .project-copy,
#cooking-descrizione .project-copy__label {
  font-weight: 300;
}

/* Reveal immagini nella sezione progetti (JS-driven) */
.reveal-wrap {
  position: relative;
  overflow: hidden;
}

.reveal-wrap img {
  display: block;
}




@media (min-width: 768px) {
  .project-copy {
    font-size: 1rem;     /* ~16px */
    line-height: 1.6;
  }

  .project-copy__label {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .project-copy__label {
    margin-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .project-copy {
    font-size: 1rem; /* ~17px */
    line-height: 1.6;
  }

  #lito-descrizione .project-copy {
    font-size: 22px;
    line-height: 33px;
  }

  #lito-descrizione .project-copy__label {
    font-size: 22px;
    line-height: 33px;
  }
}


/* Testo  sotto progetti */
.project-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.5rem;
  width: 100%;
}

.project-card__meta span {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #000;
}

.project-card__text {
  color: #000;
  line-height: 1.4;
}

.project-card--disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}


#projects .project-card {
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding-top: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

#projects .project-card__meta {
  order: 1;
  margin-top: 0.8rem;
  margin-bottom: 0;
  gap: 0.25rem;
}

#projects .project-card__meta span {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 300;
  transition: color 180ms ease;
}

#projects .project-card__meta > .project-card__text:first-child {
  text-transform: none;
}

#projects .project-card__meta .home-card-subtitle {
  text-transform: none;
  line-height: 1.1;
  color: #000;
  font-weight: 300;
  font-style: italic;
}

#projects .project-see-more {
  align-self: flex-end;
  order: 2;
  width: 100%;
  text-align: right;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.5rem;
  color: #000;
  font-weight: 300;
  font-style: normal;
}

#projects .project-see-more--soon {
  text-decoration: none;
}

#projects .project-card__media,
#projects .reveal-wrap,
#projects .project-card__media img,
#projects .reveal-wrap img {
  transition: transform 260ms ease;
}

@media (hover: hover) {
  #projects .project-card:hover .project-card__media,
  #projects .project-card:hover .reveal-wrap {
    transform: none;
  }

  #projects .project-card:hover .project-card__media img,
  #projects .project-card:hover .reveal-wrap img {
    transform: none;
  }
}

#projects .project-card:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}


@media (max-width: 767px) {
  #projects .project-card {
    display: flex;
    flex-direction: column;
  }

  #projects .project-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 1rem;
  }

  #projects .project-grid::-webkit-scrollbar {
    display: initial;
  }

  #projects .project-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    padding-top: 0;
  }

  #projects .project-card__meta {
    display: flex;
    position: static;
    order: -1 !important;
    margin-top: 0;
    margin-bottom: 0.6rem;
    gap: 0.2rem;
    z-index: auto;
    pointer-events: auto;
  }

  #projects .project-card__meta span {
    color: #000;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.12;
  }

  #projects .project-card__meta > .project-card__text:first-child {
    font-size: 23px;
    line-height: 1.15;
    font-weight: 300;
  }

  #projects .project-card__meta .home-card-subtitle {
    display: block;
    font-weight: 300;
    font-style: italic;
  }

  #projects .project-card__media,
  #projects .reveal-wrap {
    order: 1 !important;
  }
}

#projects .project-card__media,
#projects .reveal-wrap {
  order: 0;
  margin-bottom: 0;
  aspect-ratio: 1440 / 810;
  overflow: hidden;
}

#projects .project-card__media img,
#projects .reveal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#projects .project-card[data-target="lito"] .project-card__media,
#projects .project-card[data-target="lito"] .reveal-wrap {
  background: #000;
}

#projects .project-card[data-target="lito"] .project-card__media img,
#projects .project-card[data-target="lito"] .reveal-wrap img {
  object-fit: contain;
}

#projects .project-card[data-target="lito"] .project-card__media,
#projects .project-card[data-target="lito"] .reveal-wrap,
#projects .project-card[data-target="lito"] .project-card__media img,
#projects .project-card[data-target="lito"] .reveal-wrap img {
  transform: none !important;
}

#projects .project-card__media video,
#projects .reveal-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  #projects .project-card__media,
  #projects .reveal-wrap {
    aspect-ratio: 1 / 1 !important;
  }
}

.lito-glyphs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-right: 0.5px solid #000;
  border-bottom: 0.5px solid #000;
  width: 100%;
  font-family: "Lito", sans-serif;
}

.lito-glyph {
  border-top: 0.5px solid #000;
  border-left: 0.5px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-family: "Lito", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
}

.lito-glyphs-wrap {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .lito-glyphs-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.lito-glyph-preview {
  border-top: 0.5px solid #000;
  border-right: 0.5px solid #000;
  border-bottom: 0.5px solid #000;
  border-left: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-family: "Lito", sans-serif;
  font-weight: 400;
  font-size: clamp(12rem, 16vw, 16rem);
  line-height: 1;
}

@media (min-width: 768px) {
  .lito-glyph-preview {
    position: sticky;
    top: 1.25rem;
    align-self: start;
  }
}

@media (max-width: 767px) {
  .lito-glyphs-wrap {
    display: flex;
    flex-direction: column;
  }
  .lito-glyph-preview {
    border-left: 0.5px solid #000;
    position: sticky;
    top: 1.25rem;
    order: 1;
  }
  .lito-glyphs {
    order: 2;
  }
  .lito-glyphs .lito-glyph:nth-child(-n+12) {
    border-top: none;
  }
}

.lito-mockup {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin-top: 1rem;
}

.libro-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-top: 1rem;
}

.libro-cover-image {
  width: 100%;
  max-width: 1292px;
  height: auto;
  display: block;
  margin-top: 1.5rem;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

.gastro-cover-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center calc(50% - 150px);
  width: 100vw;
  max-width: none;
  max-height: 700px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gastro-page .gastro-cover-image {
  margin-top: 2rem;
}

.gastro-page .gastro-cover-desktop {
  object-position: center calc(50% + 10px);
}

.libro-page .gastro-cover-image {
  width: 100vw;
  max-width: none;
  max-height: 700px;
  height: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #999999;
  transform: scale(1.06);
  transform-origin: center center;
}

.project-lead {
  padding-left: 5rem;
  padding-right: 5rem;
  font-size: 25px;
  line-height: 33px;
  margin: 2rem 0 0;
}

#gastro.section {
  gap: 0;
}

#libro.section {
  gap: 0;
}

#lito.section {
  gap: 0;
}

#libro #descrizione {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 5rem;
  padding-right: 5rem;
  box-sizing: border-box;
}

.gastro-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  font-size: 20px;
  line-height: 28px;
  padding-top: 4rem;
}

.gastro-year,
.gastro-copy {
  font-size: 20px;
  line-height: 28px;
}

.gastro-copy p {
  margin: 0;
}

.gastro-copy p + p {
  margin-top: 1rem;
}

.gastro-pair-box {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 3rem auto 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.gastro-pair-item {
  margin: 0;
}

.gastro-pair-box img {
  width: 100%;
  height: auto;
  display: block;
}

.gastro-flip-card {
  perspective: 1000px;
}

.gastro-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

.gastro-flip-face {
  width: 100%;
  height: auto;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gastro-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

@media (hover: hover) {
  .gastro-pair-item:hover .gastro-flip-inner {
    transform: rotateY(180deg);
  }
}

.gastro-pair-caption {
  margin-top: 1rem;
  font-size: 17px;
  font-style: italic;
  line-height: 1.3;
}

.gastro-pair-note {
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  font-size: 20px;
  line-height: 28px;
  font-weight: 300;
  margin-bottom: 0;
}

.gastro-composed-row {
  width: 100%;
  margin-top: 5rem !important;
  padding-left: 5rem;
  padding-right: 5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gastro-composed-left {
  margin: 0;
}

.gastro-composed-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gastro-composed-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.gastro-composed-text {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 300;
}

@media (min-width: 1024px) {
  .project-lead {
    font-size: 40px;
    line-height: 47px;
  }

  .gastro-page #descrizione {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .project-lead {
    font-size: 23px;
    line-height: 31px;
    padding-left: 0;
    padding-right: 0;
    margin-top: 1.5rem;
  }

  #libro #descrizione {
    padding-left: 0;
    padding-right: 0;
  }

  .gastro-page .gastro-two-col {
    padding-top: 2rem;
  }

  .gastro-two-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gastro-copy p + p {
    margin-top: 0.75rem;
  }

  .gastro-pair-box {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
    margin-top: 2rem;
  }

  .gastro-pair-caption {
    margin-top: 0.75rem;
  }

  .gastro-pair-note {
    padding-left: 0;
    padding-right: 0;
    margin-top: 1rem;
  }

  .gastro-composed-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 0;
    padding-right: 0;
    margin-top: 2rem !important;
  }

  .gastro-page .gastro-composed-left {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .gastro-page .gastro-composed-left .gastro-pair-caption {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
}

.gastro-page #descrizione .project-copy {
  font-family: "swiss-721", sans-serif;
  font-weight: 300;
  font-size: 18px;
}

.gastro-page #descrizione .project-copy.gastro-intro {
  font-weight: 500;
  margin-bottom: 2rem;
}

#gastro #descrizione {
  margin-bottom: 1.5rem;
}

.libro-composed-block {
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.libro-page .libro-composed-block {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.libro-page .libro-composed-block .libro-double-pair {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.libro-composed-text {
  font-size: 1rem;
  line-height: 1.3;
}

.libro-composed-text p {
  margin: 0;
}

.libro-composed-text p + p {
  margin-top: 1rem;
}

.libro-composed-text-mobile-between {
  display: none;
}

.libro-double-pair {
  margin: 0;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Libro text scale aligned to Gastro (description text, not caption) */
.libro-page .gastro-year,
.libro-page .gastro-copy,
.libro-page .libro-composed-text {
  font-size: 1rem;
  line-height: 1.3;
}



@media (min-width: 1024px) {
  .libro-page .gastro-year,
  .libro-page .gastro-copy,
  .libro-page .libro-composed-text {
    font-size: 22px;
    line-height: 33px;
  }
}

@media (max-width: 767px) {
  .libro-composed-block {
    margin-top: 2rem;
    gap: 1rem;
  }

  .libro-composed-text-mobile-between {
    display: block;
  }

  .libro-composed-block > .libro-composed-text {
    display: none;
  }
}

.libro-carousel {
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto 0;
  position: relative;
}

.libro-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.libro-carousel-track::-webkit-scrollbar {
  display: none;
}

.libro-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  width: 100%;
  height: auto;
  display: block;
}

.libro-carousel-counter {
  text-align: center;
  font-size: 1rem;
  line-height: 1.3;
}

.gastro-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: min(700px, 56.25vw);
  max-height: 700px;
  object-fit: cover;
}

.lito-mockup-mobile {
  display: none;
  width: 100%;
}

.lito-mockup-mobile-embed {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  display: block;
}

.video-embed {
  pointer-events: none;
}

.lito-abcd-text {
  font-family: "Lito", sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.2;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 767px) {
  .lito-abcd-text {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .lito-mockup-desktop {
    display: none;
  }

  .lito-mockup-mobile {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.lito-carousel {
  margin-top: 1.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.lito-carousel-track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
  width: 100%;
}

.lito-carousel-track img {
  width: 100%;
  height: auto;
  flex: 0 0 100%;
  display: block;
}

.blog-slider-wrap {
  display: flex;
  flex-direction: column;
}

.blog-page-controls-row {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.blog-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.blog-page-controls .home-blog-nav {
  width: 1.5rem;
  height: 1.5rem;
}

.lito-gallery-controls-row {
  display: none;
}

.krochet-gallery-controls-row {
  display: none;
}

.lito-page .lito-gallery-controls-row,
.krochet-page .krochet-gallery-controls-row {
  display: block;
}

.gastro-gallery-controls-row {
  display: none;
}

/* Blog page: vertical scroll enabled, cards centered in main viewport area */
.blog-page {
  min-height: 100dvh;
}

.blog-page main.page {
  min-height: auto;
  display: block;
  padding-top: 0;
}

.blog-page #blog.section {
  margin-top: 0;
  padding-top: 2rem;
  width: 100%;
}

@media (max-width: 767px) {
  .blog-page main.page {
    min-height: auto;
    display: block;
  }

  .blog-page #blog.section {
    margin-top: 0;
    padding-top: 1rem;
  }

  .blog-page .blog-slider {
    padding-left: 0;
    padding-right: 0;
    scroll-padding-left: 0;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blog-page #blog.section {
    margin-top: 0;
    padding-top: 2rem;
  }
}

.blog-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-slider::-webkit-scrollbar {
  display: none;
}

.blog-scrollbar {
  position: relative;
  height: 2px;
  background: transparent;
  margin-top: 1rem;
}

.blog-scrollbar-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 40px;
  background: #000;
  opacity: 0;
  transition: opacity 200ms ease;
}

.blog-scrollbar-thumb.is-visible {
  opacity: 1;
}

.blog-card {
  flex: 0 0 50vw;
  max-width: 680px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-page .blog-card {
  flex: 0 0 min(52vw, 700px);
  max-width: min(52vw, 700px);
}

.blog-page .blog-card .project-card__media {
  max-height: 700px;
}

.blog-card .project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3508 / 2304;
  overflow: hidden;
  line-height: 0;
}

.blog-card-video {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-card .project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card .project-card__media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

#swatch .project-card__media,
#gas .project-card__media {
  position: relative;
  width: 100%;
  inline-size: 100%;
  max-width: none;
  max-inline-size: none;
  margin-left: 0;
  margin-right: 0;
  aspect-ratio: 3508 / 2304;
  overflow: hidden;
  line-height: 0;
}

#swatch > div,
#gas > div {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

#swatch .project-card__media iframe,
#swatch .project-card__media video,
#gas .project-card__media iframe,
#gas .project-card__media video {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

#swatch .project-card__media > *,
#gas .project-card__media > * {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (min-width: 1024px) {
  #swatch .project-card__media,
  #gas .project-card__media {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

.blog-card .video-embed {
  aspect-ratio: 3508 / 2304;
}

.blog-card .project-card__media video.video-embed {
  aspect-ratio: auto;
}

.blog-card-header {
  font-size: 1rem;
  font-weight: 300;
  text-align: left;
  margin-bottom: 0.5rem;
}

.blog-card .project-copy {
  margin-top: 1rem;
  font-weight: 300;
}

.found-note {
  display: block;
  margin-top: 0.5rem;
}

.swatch-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1rem;
}

#swatch .project-copy,
#gas .project-copy {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
}

#swatch .swatch-text-right .project-copy + .project-copy {
  margin-top: 1rem;
}

#swatch .blog-card-header,
#gas .blog-card-header {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

#swatch .project-copy strong,
#swatch .project-copy b,
#gas .project-copy strong,
#gas .project-copy b {
  font-weight: 700;
}

#swatch .project-copy em,
#swatch .project-copy i,
#gas .project-copy em,
#gas .project-copy i {
  font-style: italic;
}

.swatch-title {
  font-weight: 500;
}

@media (max-width: 767px) {
  .blog-page .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-card-header {
    font-size: 1rem;
  }

  .blog-card .project-copy {
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .swatch-text-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 768px) {
  #swatch .project-copy,
  #gas .project-copy {
    font-size: 22px;
    line-height: 33px;
  }

  #swatch .blog-card-header,
  #gas .blog-card-header {
    font-size: 22px;
    line-height: 33px;
  }
}

@media (max-width: 767px) {
  #descrizione .project-copy,
  #lito-descrizione .project-copy,
  #shabu-right .project-copy,
  #cooking-descrizione .project-copy {
    font-size: 1rem;
  }
}

.home-blog-cards {
  margin-top: 1rem;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.home-blog-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.home-blog-title {
  text-align: left;
  font-family: "swiss-721-bt-outline", sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 4rem;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.home-blog-slider {
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .home-blog-slider {
    gap: 1rem;
  }
}

.home-blog-slider .blog-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
}

.home-blog-controls {
  display: none;
}

.home-blog-mobile-controls-row,
.home-blog-mobile-controls {
  display: none;
}

.home-blog-nav {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  pointer-events: auto;
  z-index: 6;
}

.home-blog-nav.is-disabled {
  opacity: 0.5;
}

.home-blog-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.home-blog-arrow-hover {
  opacity: 0;
}

.home-blog-arrow-right {
  transform: rotate(180deg);
}

.home-blog-nav.is-tapped .home-blog-arrow-default {
  opacity: 0;
}

.home-blog-nav.is-tapped .home-blog-arrow-hover {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .home-blog-nav:hover .home-blog-arrow-default {
    opacity: 0;
  }

  .home-blog-nav:hover .home-blog-arrow-hover {
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  body.home-page .home-blog-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: auto;
  }

  body.home-page .home-blog-mobile-controls-row {
    display: block;
    margin-top: 0.25rem;
  }

  body.home-page .home-blog-mobile-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    z-index: 5;
    pointer-events: auto;
  }

  body.home-page .home-blog-nav {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 767px) {
  body.home-page .home-blog-nav {
    width: 1.5rem;
    height: 1.5rem;
  }

  body.home-page .home-blog-slider .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.home-page .home-blog-slider .blog-card .project-copy {
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
}

.home-blog-copy-mobile {
  display: none;
}

@media (max-width: 767px) {
  .home-blog-copy-desktop {
    display: none;
  }

  .home-blog-copy-mobile {
    display: inline;
  }
}

.type-tester {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

#lito-left .type-tester {
  max-width: none;
  margin: 0;
}

/* textarea */

.project-copy__title {
  margin-top: 2rem;
}

#lito-descrizione {
  padding-top: 0;
}

@media (max-width: 767px) {
  .project-copy__title {
    margin-top: 1rem;
  }

  #lito-descrizione {
    padding-top: 0;
  }
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 2rem;
}

.contact-form-block {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-main {
  flex: 1 1 auto;
}

.contact-main .contact-section {
  flex: 1 1 auto;
}


.contact-lead {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 3rem;
}

.contact-lead-paragraph {
  display: block;
}

.contact-lead-paragraph--spaced {
  margin-top: 1rem;
}

.contact-email-link {
  color: inherit;
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.contact-title-line {
  width: 100%;
  border-top: 2px solid #000;
}

.contact-title-line-top {
  margin-bottom: 0.5rem;
}

.contact-title-line-bottom {
  margin-top: 3rem;
  position: relative;
}

.contact-title-line-bottom::after {
  content: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  border: 1px solid #000;
  padding: 1.25rem 0.75rem 0.6rem 0;
}

.contact-row .contact-field + .contact-field {
  border-left: 0;
}

.contact-row .contact-field:first-child {
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #000;
}

.contact-row .contact-field:last-child {
  border-top: 0;
  border-right: 0;
}

.contact-tag {
  position: absolute;
  top: 0.3rem;
  left: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.contact-field.is-invalid .contact-tag {
  color: #c40000;
}

.contact-field input,
.contact-field textarea {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 500;
  outline: none;
  width: 100%;
}


.contact-field textarea {
  resize: vertical;
}

.contact-message textarea {
  min-height: 4rem;
}

.contact-message {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid #000;
}

.contact-message textarea {
  resize: none;
}

.contact-subject {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid #000;
}

.contact-submit {
  align-self: flex-start;
  border: 1px solid #000;
  background: transparent;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font: inherit;
}

.contact-submit-btn {
  align-self: flex-start;
  margin-left: 0;
  margin-top: 1rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.contact-form .footer-newsletter-consent {
  margin-top: 1rem;
  max-width: none;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
  display: none;
}

.contact-status.is-visible {
  display: block;
}

.contact-status.is-error {
  color: #c40000;
}

.contact-status.is-success {
  color: #000;
}

.contact-email {
  color: inherit;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact-page .contact-lead,
  .blog-page .contact-lead {
    line-height: 1.3;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .contact-lead {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding-top: 1rem;
  }

  .contact-row .contact-field:first-child {
    border-right: 0;
  }

.contact-submit-btn {
  align-self: flex-end;
  margin-left: auto;
}
}

@media (min-width: 768px) {
  .contact-row {
    grid-template-columns: 35% 65%;
  }

  .contact-row .contact-field:last-child {
    padding-left: 0.5rem;
  }

.contact-row .contact-field:last-child .contact-tag {
    left: 0.5rem;
  }

  .page {
    width: 100%;
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  main.page {
    width: 100%;
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .site-header__bar {
    width: 100%;
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .footer {
    width: 100%;
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.krochet-page #descrizione {
  padding-left: 5rem;
  padding-right: 5rem;
  box-sizing: border-box;
}

.krochet-page .gastro-year,
.krochet-page .gastro-copy {
  font-size: 22px;
  line-height: 33px;
}

.krochet-page .gastro-copy p {
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .krochet-page #descrizione {
    padding-left: 0;
    padding-right: 0;
  }

  .krochet-page .gastro-year,
  .krochet-page .gastro-copy {
    font-size: 1rem;
    line-height: 1.2;
  }
}

@media (min-width: 1024px) {
  #krochet #lito-descrizione {
    display: block;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  #krochet #lito-descrizione .project-copy__label,
  #krochet #lito-descrizione .project-copy {
    text-align: left;
  }

  #libro #lito-descrizione {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  #libro #lito-descrizione .project-copy__label {
    font-weight: 500;
  }

  #gastro #descrizione {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5rem;
    padding-right: 5rem;
    box-sizing: border-box;
  }

  #gastro #descrizione .project-copy__label,
  #gastro #descrizione .project-copy {
    font-size: 22px;
    line-height: 33px;
    font-weight: 300;
    margin: 0;
  }

  #gastro #descrizione .project-copy.gastro-intro {
    font-weight: 500 !important;
    margin-top: 1em;
    margin-bottom: 2rem;
  }

  #gastro #descrizione .gastro-year {
    text-align: left;
    justify-self: start;
  }

  #gastro #photo {
    max-width: 1292px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

}

.krochet-carousel {
  margin-top: 4rem;
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 0;
}

.krochet-carousel::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: -1rem;
  bottom: -1rem;
  background: transparent;
  z-index: -1;
}

.krochet-carousel-track {
  display: flex;
  gap: 1rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.krochet-carousel-track::-webkit-scrollbar {
  display: none;
}

.krochet-carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  width: 100%;
  height: auto;
  display: block;
}

.krochet-carousel-btn {
  pointer-events: auto;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
}

.krochet-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  pointer-events: none;
}

/* Arrows removed on all devices */
.krochet-carousel-controls {
  display: none !important;
}

.krochet-video {
  width: min(62%, 680px);
  max-width: 100%;
  max-height: 700px;
  height: auto;
  display: block;
  margin: 2rem auto 0;
}

@media (min-width: 1024px) {
  .krochet-page .krochet-video-row {
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .krochet-page .krochet-video {
    height: 700px;
    max-height: 700px;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    object-fit: contain;
  }
}

.libro-page model-viewer.krochet-video {
  width: min(62%, 680px);
  max-width: 100%;
  height: min(700px, 70vh);
  max-height: 700px;
  display: block;
  margin: 2rem auto 0;
  cursor: grab;
  pointer-events: auto;
}

.libro-page model-viewer.krochet-video:active {
  cursor: grabbing;
}

.libro-page .libro-cover-3d {
  width: 100dvw;
  max-width: none;
  height: 650px;
  max-height: 650px;
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  cursor: grab;
  pointer-events: auto;
}

.libro-page .libro-cover-3d:active {
  cursor: grabbing;
}

.libro-page .libro-cover-3d::part(default-progress-bar),
.libro-page .libro-cover-3d::part(default-progress-mask),
.libro-page .libro-cover-3d::part(progress-bar),
.libro-page .libro-cover-3d::part(progress-mask) {
  display: none !important;
}

.libro-page {
  overflow-x: clip;
}

.libro-page .page {
  overflow-x: visible;
}

.libro-page .krochet-video-row {
  width: 100dvw;
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  overflow-x: clip;
}

.libro-bottom-bleed {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

#libro #descrizione {
  margin-bottom: 1.5rem;
}

.libro-bottom-bleed-wrap {
  width: 100vw;
  max-width: none;
  margin-top: 5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: block;
}

.libro-page .libro-bottom-description {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-left: 5rem;
  padding-right: 5rem;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
}

.libro-page .libro-sfoglia-image {
  width: 100%;
  display: block;
}

.libro-page .libro-sfoglia-row {
  width: 100%;
  max-width: 1650px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.libro-page .libro-sfoglia-row .libro-bottom-description {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: block;
}

@media (min-width: 1024px) {
  .libro-page .libro-bottom-description {
    font-size: 22px;
    line-height: 33px;
  }

  .libro-page .libro-sfoglia-row {
    margin-top: 4.5rem;
  }
}

@media (max-width: 767px) {
  .libro-bottom-bleed {
    margin-top: 0;
  }

  .libro-bottom-bleed-wrap {
    margin-top: 2rem;
  }

  .libro-page .libro-bottom-description {
    padding-left: 0;
    padding-right: 0;
  }

  .libro-page .libro-sfoglia-image {
    max-width: 100%;
  }

  .libro-page .libro-sfoglia-row {
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .libro-page .libro-sfoglia-row .libro-bottom-description {
    order: 1;
  }

  .libro-page .libro-sfoglia-row .libro-sfoglia-image {
    order: 2;
  }
}

.krochet-video-row {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  padding: 0;
}

.project-gallery-note,
.project-gallery-note {
  margin: 0;
}

.project-gallery-note {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.3;
  text-align: right;
}

.gallery-scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
}

.lito-page .lito-gallery-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.lito-page .lito-specimen-note {
  text-align: left;
  margin-top: 1rem;
}

#krochet.section {
  gap: 0;
}

.krochet-page #descrizione .gastro-two-col {
  padding-top: 4rem;
}


@media (max-width: 767px) {
  .krochet-page #descrizione .gastro-two-col {
    padding-top: 2rem;
  }

  .krochet-carousel {
    margin-top: 2rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .libro-page .krochet-video-row {
    margin-top: 2rem;
  }

  .krochet-page .krochet-video-row {
    margin-top: 2rem;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .krochet-page .krochet-video {
    height: 650px;
    max-height: 650px;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    object-fit: contain;
  }

  .lito-page .lito-cover-wrap.project-hero-tablet-fixed {
    min-height: 650px;
    height: 650px;
    max-height: 650px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  /* Unified mobile hero rhythm across project pages */
  .gastro-page .gastro-cover-image,
  #cooking .gastro-cover-image {
    height: 500px;
    max-height: 500px;
    margin-top: 1.5rem;
    margin-bottom: 0;
    object-fit: cover;
  }

  .krochet-page .krochet-video-row,
  .libro-page .krochet-video-row {
    margin-top: 1.5rem;
  }

  .krochet-page .krochet-video {
    height: 500px;
    max-height: 500px;
    width: auto;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    object-fit: contain;
  }

  .libro-page .libro-cover-3d {
    height: 500px;
    max-height: 500px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .lito-page .lito-cover-wrap {
    margin-top: 1.5rem;
    min-height: 500px;
    height: 500px;
    max-height: 500px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lito-page .lito-mockup-mobile {
    width: 100%;
    height: 100%;
    margin: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lito-page .lito-mockup-mobile-embed {
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    background: #000;
  }
}

@media (min-width: 1024px) {
  .krochet-carousel-track {
    gap: 1rem;
  }

  .krochet-carousel-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 767px) {
  .krochet-carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .krochet-carousel-controls {
    display: flex;
  }

  .krochet-carousel-track {
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .krochet-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .krochet-carousel-btn {
    font-size: 2.2rem;
  }
}

/* Gastro mobile cover override */
.gastro-cover-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .gastro-cover-desktop {
    display: none !important;
  }

  .gastro-cover-mobile {
    display: block !important;
    width: 100vw;
    max-width: none;
    height: 500px;
    max-height: 500px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 767px) {
  .gastro-cover-desktop {
    display: block !important;
  }

  .gastro-cover-mobile {
    display: none !important;
  }
}

/* Gastro text scale aligned with Krochet description */
.gastro-page .gastro-year,
.gastro-page .gastro-copy,
.gastro-page .gastro-pair-note,
.gastro-page .gastro-composed-text {
  font-size: 1rem;
  line-height: 1.3;
}

.gastro-page .gastro-pair-caption {
  font-size: 1rem;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .gastro-page .gastro-year,
  .gastro-page .gastro-copy,
  .gastro-page .gastro-pair-note,
  .gastro-page .gastro-composed-text {
    font-size: 22px;
    line-height: 33px;
  }
}

/* Gastro page: keep consistent side margins with page container (except full-bleed elements) */
.gastro-page #gastro .project-lead,
.gastro-page #gastro #descrizione,
.gastro-page #gastro .gastro-two-col,
.gastro-page #gastro .gastro-pair-box,
.gastro-page #gastro .gastro-pair-note,
.gastro-page #gastro .gastro-composed-row {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.gastro-page #gastro .gastro-pair-box {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
}

.gastro-page #gastro .gastro-pair-note {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.gastro-three-grid {
  width: 100%;
  max-width: 1650px;
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.gastro-three-grid .gastro-pair-item {
  margin: 0;
}

.gastro-three-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.gastro-three-grid .gastro-pair-caption {
  margin-top: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gastro-three-grid {
    display: flex;
    max-width: 100%;
    margin-top: 2rem;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gastro-three-grid::-webkit-scrollbar {
    display: none;
  }

  .gastro-three-grid .gastro-pair-item {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  .gastro-page .gastro-gallery-controls-row {
    display: block;
  }
}

@media (max-width: 767px) {
  .gastro-three-grid {
    display: flex;
    max-width: 100%;
    margin-top: 2rem;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gastro-three-grid::-webkit-scrollbar {
    display: none;
  }

  .gastro-three-grid .gastro-pair-item {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .gastro-page .gastro-gallery-controls-row {
    display: block;
  }
}

.gastro-three-note {
  width: 100%;
  max-width: 1650px;
  margin-top: 1rem;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Unified header style (same structure used in gastro) */
@media (min-width: 1024px) {
  .site-header__bar {
    align-items: baseline;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }

  .site-header__logo {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    line-height: 1;
    font-size: 2.8rem;
  }

  .site-header__logo-top,
  .site-header__logo-bottom {
    display: inline;
  }

  .site-header__nav {
    flex-direction: row;
    align-items: baseline;
    gap: 1.25rem;
    transform: none;
    align-self: baseline;
  }

  .site-header__nav .btn-link {
    font-weight: 500;
  }

  /* Desktop: keep 3rem between header and first content across key pages */
  body.home-page .home-image-container {
    margin-top: 2rem;
  }

  #projects .project-grid {
    margin-top: 1rem;
  }

  .lito-page .lito-cover-wrap,
  .libro-page .krochet-video-row,
  .krochet-page .krochet-video-row,
  #cooking .gastro-cover-image,
  #gas .lito-mockup,
  #shabu .lito-mockup {
    margin-top: 2rem;
  }

  .lito-page .lito-glyphs-wrap {
    margin-top: 4.5rem;
  }
}

@media (max-width: 767px) {
  .site-header__bar {
    padding-bottom: 1rem;
  }
}

/* Lito page: cover + text layout aligned to Gastro structure */
.lito-page .lito-cover-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lito-page .lito-mockup {
  margin-top: 0;
}

.lito-page .lito-mockup-desktop {
  width: 100%;
  max-width: 1244px;
  max-height: 700px;
  aspect-ratio: 16 / 9;
}

.lito-page #lito-descrizione {
  padding-top: 4rem;
  padding-left: 5rem;
  padding-right: 5rem;
}

.lito-page .lito-meta-list {
  text-align: left;
  justify-self: start;
}

.lito-page .lito-abcd-block {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 4rem;
  margin-bottom: 0;
  background: #b3b3b3;
  padding: 1rem 5rem;
  box-sizing: border-box;
}

.lito-page .lito-glyphs-wrap {
  padding-left: 5rem;
  padding-right: 5rem;
  box-sizing: border-box;
}

.lito-page .lito-abcd-text {
  display: block;
  text-align: center;
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  overflow: visible;
  white-space: normal;
}

.lito-page .lito-abcd-track {
  display: inline-block;
  padding-left: 0;
  animation: none;
  line-height: inherit;
}

.lito-page .lito-scroll-strip {
  margin-top: 4.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.lito-page .lito-scroll-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: #000;
}

.lito-page .lito-scroll-track::before {
  content: "";
  flex: 0 0 4rem;
  background: #000;
}

.lito-page .lito-scroll-track img {
  width: auto;
  height: auto;
  max-height: 700px;
  flex: 0 0 auto;
  display: block;
}

@media (max-width: 767px) {
  .lito-page .lito-mockup-desktop {
    display: none;
  }

  .lito-page .lito-mockup-mobile {
    display: block;
  }

  .lito-page #lito-descrizione {
    padding-top: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .lito-page .lito-abcd-block {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
  }

  .lito-page .lito-abcd-text {
    margin: 0;
    font-size: clamp(1.08rem, 4.6vw, 1.5rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lito-page .lito-abcd-track {
    display: block;
    margin: 0;
  }

  .lito-page .lito-glyphs-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .lito-page .gastro-year,
  .lito-page .gastro-copy,
  .lito-page .gastro-copy p {
    font-size: 1rem;
    line-height: 1.3;
  }

  .lito-page .lito-scroll-strip {
    margin-top: 2.5rem;
  }

  .lito-page .lito-scroll-track {
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lito-page .lito-scroll-track::-webkit-scrollbar {
    display: none;
  }

  .lito-page .lito-scroll-track::before {
    content: none;
  }

  .lito-page .lito-scroll-track img {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    scroll-snap-align: start;
  }
}

/* Global desktop alignment: header, main and footer share the same content box */
@media (min-width: 768px) {
  body > header .site-header__bar,
  body > main.page,
  body > footer.footer {
    width: min(100%, 1650px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
    box-sizing: border-box;
  }
}

/* Libro page: avoid extra nested side paddings, keep alignment with page columns */
@media (min-width: 768px) {
  .libro-page #libro .project-lead,
  .libro-page #libro #descrizione,
  .libro-page #libro .libro-bottom-description {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
}

/* Krochet page: keep consistent side margins with page container (except full-bleed rows) */
@media (min-width: 768px) {
  .krochet-page #krochet .project-lead,
  .krochet-page #krochet #descrizione,
  .krochet-page #krochet .gastro-two-col,
  .krochet-page #krochet .project-gallery-note {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
}

/* Mobile project text consistency */
@media (max-width: 767px) {
  .gastro-page .gastro-year,
  .gastro-page .gastro-copy,
  .gastro-page .gastro-copy p,
  .gastro-page .gastro-pair-caption,
  .gastro-page .gastro-pair-note,
  .gastro-page .gastro-composed-text,
  .libro-page .gastro-year,
  .libro-page .gastro-copy,
  .libro-page .gastro-copy p,
  .libro-page .gastro-pair-caption,
  .libro-page .libro-bottom-description,
  .libro-page .libro-composed-text,
  .lito-page .gastro-year,
  .lito-page .gastro-copy,
  .lito-page .gastro-copy p,
  .krochet-page .gastro-year,
  .krochet-page .gastro-copy,
  .project-gallery-note {
    font-size: 1rem;
    line-height: 1.2;
  }

  .gastro-year em,
  .gastro-copy em,
  .gastro-pair-caption em,
  .project-gallery-note em,
  .libro-bottom-description em {
    font-size: inherit;
    line-height: inherit;
    font-style: italic;
    font-weight: inherit;
  }

  .gallery-scroll-hint em {
    display: none;
  }

  .gallery-scroll-hint::before,
  .gallery-scroll-hint::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background: url("../img/icone/freccia.svg") center center / contain no-repeat;
    display: inline-block;
  }

  .gallery-scroll-hint::after {
    transform: rotate(180deg);
  }

  .lito-page .lito-gallery-controls-row {
    display: block;
  }

  .krochet-page .krochet-gallery-controls-row {
    display: block;
  }

  .lito-page .gallery-scroll-hint::before,
  .lito-page .gallery-scroll-hint::after {
    content: none;
  }

  .krochet-page .gallery-scroll-hint::before,
  .krochet-page .gallery-scroll-hint::after {
    content: none;
  }
}

/* Tablet (mobile-like) layout */
@media (min-width: 768px) and (max-width: 1023px) {
  body.menu-open {
    overflow: hidden;
    height: 100dvh;
  }

  .lito-page .lito-gallery-controls-row {
    display: block;
  }

  .krochet-page .krochet-gallery-controls-row {
    display: block;
  }

  .lito-page .gallery-scroll-hint::before,
  .lito-page .gallery-scroll-hint::after {
    content: none;
  }

  .krochet-page .gallery-scroll-hint::before,
  .krochet-page .gallery-scroll-hint::after {
    content: none;
  }

  .site-header__bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem 2rem;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-inline {
    display: none !important;
  }

  .menu-open .site-header__menu-inline {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-bottom: 1rem;
  }

  .menu-open .site-header__menu-inline-link {
    font-family: "swiss-721-bt-cond-outline", sans-serif;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    margin-top: 0;
  }

  .site-header__logo {
    font-size: 2.4rem;
    padding-right: 0;
    padding-top: 0;
  }

  .site-header__menu-panel {
    padding: 2rem 1.25rem;
    gap: 1.25rem;
  }

  .site-header__menu-link {
    font-size: 2rem;
    line-height: 1;
  }

  .menu-open .site-header__logo-bottom {
    display: none;
  }

  .site-header__menu-overlay {
    display: none !important;
  }

  .page,
  main.page,
  .site-header__bar,
  .footer {
    max-width: none;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .project-lead {
    font-size: 34px;
    line-height: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .gastro-page .gastro-year,
  .gastro-page .gastro-copy,
  .gastro-page .gastro-pair-note,
  .gastro-page .gastro-composed-text {
    font-size: 20px;
    line-height: 30px;
  }

  .gastro-page .gastro-cover-desktop {
    display: block !important;
  }

  .gastro-page .gastro-cover-mobile {
    display: none !important;
  }

  .gastro-page .gastro-cover-image {
    height: 650px;
    max-height: 650px;
  }

  .project-hero-tablet {
    max-height: 650px;
  }

  .project-hero-tablet-fixed {
    height: 650px;
    max-height: 650px;
  }

  .lito-page .lito-cover-wrap {
    background: #000;
    align-items: center;
    margin-top: 2rem;
  }

  .lito-page .lito-cover-wrap.project-hero-tablet-fixed {
    height: 650px;
    max-height: 650px;
  }

  .gastro-two-col,
  .gastro-composed-row,
  .libro-sfoglia-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gastro-page .gastro-composed-image-wrap {
    aspect-ratio: auto;
    max-height: 600px;
    overflow: hidden;
  }

  .gastro-page .gastro-composed-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
  }

  .gastro-composed-left,
  .libro-sfoglia-image {
    order: 1;
  }

  .gastro-composed-right,
  .libro-sfoglia-row .libro-bottom-description {
    order: 2;
  }

  .gastro-page #gastro .gastro-pair-box,
  .libro-page .libro-composed-block .libro-double-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gastro-page #gastro .gastro-pair-box,
  .gastro-page #gastro .gastro-pair-note,
  .gastro-three-grid,
  .libro-page .libro-composed-block,
  .libro-page .libro-sfoglia-row {
    max-width: none;
  }

  .lito-page #lito-descrizione {
    padding-top: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  /* Tablet: glyph preview like mobile (preview on top + sticky) */
  .lito-page .lito-glyphs-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    padding-left: 0;
    padding-right: 0;
  }

  .lito-page #lito-glyph-preview.lito-glyph-preview {
    order: 1;
    position: sticky;
    top: 1.25rem;
    align-self: stretch;
    width: 100%;
    max-width: none;
    border-left: 0.5px solid #000;
    font-size: 16rem;
  }

  .lito-page .lito-glyphs {
    order: 2;
  }

  .lito-page .lito-glyphs .lito-glyph:nth-child(-n+12) {
    border-top: none;
  }

  /* Tablet: center gray block text */
  .lito-page .lito-abcd-block {
    padding: 1rem 2rem;
  }

  .lito-page .lito-abcd-text {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .lito-page .lito-abcd-track {
    display: block;
    margin: 0 auto;
  }

  .lito-page .lito-scroll-track {
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lito-page .lito-scroll-track::-webkit-scrollbar {
    display: none;
  }

  .lito-page .lito-scroll-track::before {
    content: none;
  }

  .lito-page .lito-scroll-track img {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: auto;
    max-height: 650px;
    scroll-snap-align: start;
  }

  #projects .project-grid {
    grid-template-columns: 1fr !important;
    row-gap: 1.25rem;
  }

  .home-project-cards-grid {
    grid-template-columns: 1fr !important;
    row-gap: 1.25rem;
    column-gap: 1.5rem;
  }

  body.home-page .home-project-cards .project-card {
    padding-top: 1rem;
    margin-bottom: 2rem;
  }

  .home-blog-slider .blog-card,
  .blog-page .blog-card {
    flex: 0 0 min(85vw, 700px);
    max-width: min(85vw, 700px);
  }

  .home-video-cta {
    right: 2rem;
  }

  .krochet-carousel-track {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .krochet-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .krochet-carousel-slide {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    height: 650px;
    object-fit: contain;
    scroll-snap-align: start;
  }

  .gastro-three-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gastro-three-grid::-webkit-scrollbar {
    display: none;
  }

  .gastro-three-grid img {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: 650px;
    scroll-snap-align: start;
  }
}
