/* ============================================
   RESET & BASE
   ============================================ */

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

/* --- Preloader --- */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, #B5AE9C 20%, #CBBAA0 80%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.preloader__heading {
  font-family: "quasimoda", sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0;
}

.preloader__word span {
  display: inline-block;
  transform: translateY(100%);
}

#preword1 { font-weight: 700; }
#preword2 { font-weight: 400; }

.preloader__img {
  width: 0;
  height: clamp(40px, 6vw, 70px);
  object-fit: cover;
  border-radius: 8px;
}

/* --- Persistent logo --- */

.site-logo {
  position: fixed;
  top: var(--ui-padding);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
}

.site-logo img {
  height: clamp(2.2rem, 5vw, 5rem);
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-text: #f0ede6;
  --color-text-muted: #8a8780;
  --color-accent: #c9b99a;
  --color-border: rgba(240, 237, 230, 0.08);

  --font-display: 'Tenor Sans', sans-serif;
  --font-body: 'Tenor Sans', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
  --space-3xl: 22rem;

  --ui-padding: 2rem;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   SECTIONS (below hero)
   ============================================ */

.section {
  width: 100%;
  position: relative;
  z-index: 2;
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.section__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.promo-centro {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  display: block; 

}

/* ============================================
   PRODOTTI — BOTTLE CAROUSEL (Split Layering)
   ============================================ */

#prodotti-wrap {
  position: relative;
  z-index: 10;
  /* Extra height to accommodate dead zones for each slide */
  height: 500vh;
}

#prodotti {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  overflow: hidden;
  background: #E9DFCF;
  color: #fff;
  perspective: 800px;
}

/* --- Background color layers --- */

#prodotti .prodotti__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
}

#prodotti .prodotti__bg--1 { background: #a1adb5; opacity: 1; }
#prodotti .prodotti__bg--2 { background: #a1adb5; }
#prodotti .prodotti__bg--3 { background: #a1adb5; }

/* --- Pill background (FIXED center, does NOT move) --- */
/*
#prodotti .prodotti__bg-static {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13vw;
  height: 52vh;
  border-radius: 1000px;
  overflow: hidden;
  z-index: 1;
}
*/
#prodotti .prodotti__bg-static {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15vw;
    height: 55vh;
    border-radius: 1000px;
    overflow: hidden;
    z-index: 1;
}




#prodotti .prodotti__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

#prodotti .prodotti__bg-img:first-child {
  opacity: 1;
}

/* --- Draggable track (moves horizontally) --- */

#prodotti .prodotti__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  z-index: 2;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transform-style: preserve-3d;
}

#prodotti .prodotti__track:active {
  cursor: grabbing;
}

/* --- Each slide (100vw wide, scrolls with track) --- */

#prodotti .prodotti__slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
}

/* --- Bottle image (very large, absolutely centered over the pill) --- */

#prodotti .prodotti__bottle-img {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 37vw;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  z-index: 10;
  /*filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.15));*/
  will-change: transform, opacity;
}

/* --- Slide info (inside each slide, moves with it) --- */

#prodotti .prodotti__slide-info {
  padding-top:10vh;
  position: absolute;
  /*bottom: 3.5rem;*/ 
  height: 100%;
  top:0%;
  left: var(--ui-padding);
  z-index: 3;
  max-width: 28rem;
  will-change: opacity;
}

#prodotti .prodotti__slide-info .info-testo {
position: absolute; 
bottom: 10vh;
}



#prodotti .prodotti__label {
    display: block;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 0rem;
    font-size: .8rem;
    margin-bottom: 1.5rem;
}



#prodotti .prodotti__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.25rem;
}

#prodotti .prodotti__price {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

#prodotti .prodotti__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    /* font-style: italic; */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

#prodotti .prodotti__desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

#prodotti .prodotti__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: gap 0.3s ease;
}

#prodotti .prodotti__cta:hover { gap: 1rem; }

/* --- Indicator --- */

#prodotti .prodotti__indicator {
  position: absolute;
  top: 3.5rem;
  right: var(--ui-padding);
  z-index: 10;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ============================================
   BRAND — TELESCOPE ZOOM (CORRETTO)
   ============================================ */

#brand {
  position: relative;
  z-index: 2;
      background: linear-gradient(100deg, #B5AE9C 20%, #CBBAA0 80%);
  height: 250vh;
}

#brand .brand__scene {
  position: sticky; /* USARE STICKY INVECE DI PIN JS */
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Media layers (background zoom) --- */

#brand .brand__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#brand .brand__media-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#brand .brand__media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 71px;
}

/* --- Title (splits apart on scroll) --- */

#brand .brand__title {
  font-family: var(--font-display);
  font-size: 3vw;
  font-weight: normal;
  transform: translateY(-15%);
  display: flex;
  gap: 2rem;
  z-index: 1;
  color: var(--color-text);
  margin: 0;
}

#brand .brand__title span {
  display: inline-block;
}

/* --- Small floating images --- */

#brand .brand__images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  perspective: 100vh;
  z-index: 2;
}

#brand .brand__images picture {
  display: contents;
}

#brand .brand__images img {
  position: absolute;
  width: 10vw; border-radius: 18px;
}

#brand .brand__images > :nth-child(1) img  { top: 15vw; left: -3vw; }
#brand .brand__images > :nth-child(2) img  { top: 5vw; left: 20vw; }
#brand .brand__images > :nth-child(3) img  { top: 8vw; left: 26.5vw; }
#brand .brand__images > :nth-child(4) img  { top: 18vw; right: 18vw; }
#brand .brand__images > :nth-child(5) img  { top: 5vw; right: 10vw; }
#brand .brand__images > :nth-child(6) img  { bottom: 5vw; left: 10vw; }
#brand .brand__images > :nth-child(7) img  { bottom: 8vw; left: 22.5vw; }
#brand .brand__images > :nth-child(8) img  { bottom: 3vw; left: 45vw; }
#brand .brand__images > :nth-child(9) img  { bottom: 5vw; right: 15vw; }
#brand .brand__images > :nth-child(10) img { bottom: 9vw; right: 7vw; }

/* ============================================
   LINEA STORY — Unified Narrative Block
   ============================================ */

#linea-story {
  position: relative;
  z-index: 2;
  background: #93A4AE;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

/* --- Inner container --- */

.linea-story__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* --- Expanding typography (H2) --- */

.linea-story__type {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.75vw, 3.5rem);
  font-weight: 300;
  line-height: 1.4;
  text-transform: none;
  margin: 0;
  color: var(--color-text);
}

/* --- Expand grid (inline-grid 3 cols) --- */

.linea-story__expand {
  vertical-align: top;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.15em;
  justify-content: center;
}

.linea-story__type--open .linea-story__expand {
  grid-template-columns: auto auto auto;
  gap: 0.5rem;
}

/* --- Pill image (sharp corners) --- */

.linea-story__pill {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 0%;
  overflow: hidden;
  border-radius: 0;
}

.linea-story__type--open .linea-story__pill {
  width: 100%;
}

.linea-story__pill-inner {
  display: block;
  /*width: 18vw;*/
  height: 100%;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9; border-radius: 30px;  
    
}

.linea-story__type--open .linea-story__pill-inner {
  width: 600px;
  max-width: 90vw;
}

/* --- Animated text (no skew) --- */

.linea-story__anim {
  display: block;
  white-space: nowrap;
  align-self: center;
}

.linea-story__type--open .linea-story__anim {
  transform: none;
}

.linea-story__text-before {
  text-align: right;
  white-space: nowrap;
  align-self: center;
}

/* --- Descriptive copy --- */

.linea-story__copy {
    max-width: 900px;
    margin: 100px auto 0;
    color: rgb(255 255 255);
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.05vw, 1.5rem);
       line-height: 1.4;
    text-align: left;
}


.linea-story__copy p {
  margin: 0 0 0.8em;
}

.linea-story__copy p:last-child {
  margin-bottom: 0;
}

/* SplitType line wrappers */
.linea-story__copy .line {
  overflow: hidden;
}

/* --- Giant closing title (in-flow, parallax via JS) --- */

.linea-story__title {
  margin: 0px auto 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 35vw, 40rem);
  font-weight: 400;
  text-transform: none;
  text-align: center;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.10);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  bottom: -220px;
}

.linea-story__title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  #linea-story {
    padding-top: var(--space-xl);
  }

  .linea-story__pill-inner {
    width: 100vw;
  }

  .linea-story__copy {
    margin-top: 60px;
  }

  .linea-story__title {
    margin-top: 80px;
  }
}

/* ============================================
   LINES — 3-ROW LAYOUT WITH CLICKABLE IMAGES
   ============================================ */

#lines-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(100deg, #B5AE9C 20%, #CBBAA0 80%);
  color: #fff;
  overflow: hidden;
  padding-top: 20vh;
}

/* --- Intro grid & content wrap stack in the same cell --- */

#lines-section .lines-grid,
#lines-section .lines-content-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
}

/* --- Main grid container --- */

#lines-section .lines-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2rem, 4vh, 4rem) 5vw;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#lines-section .lines-grid--close {
  pointer-events: none;
}

/* --- Each row --- */

#lines-section .lines-grid__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  position: relative;
}

/* --- Text elements --- */

#lines-section .lines-grid__text {
  display: inline-block;
}

/* --- Overflow hidden text reveal pattern --- */

#lines-section .lines-oh {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

#lines-section .lines-oh > span {
  display: inline-block;
  will-change: transform;
}

/* --- Inline slots (reserve space inside text rows for images) --- */

#lines-section .lines-slot {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

#lines-section .lines-slot--1 {
  width: clamp(150px, 18vw, 220px);
  height: clamp(90px, 10vw, 130px);
}

#lines-section .lines-slot--2 {
  width: clamp(180px, 22vw, 280px);
  height: clamp(120px, 14vw, 180px);
}

#lines-section .lines-slot--3 {
  width: clamp(220px, 28vw, 360px);
  height: clamp(90px, 10vw, 130px);
}

/* --- Image base (shared between slot state and content state) --- */

#lines-section .lines-grid__image {
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  /* NO transform here — Flip needs a clean node */
}

#lines-section .lines-grid__image--2 {
  border-radius: 30px;
}

/* --- Image inside its slot (grid/intro state) --- */

#lines-section .lines-slot > .lines-grid__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Image inside content panel (open state) --- */

#lines-section .lines-content__row--image > .lines-grid__image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  cursor: default;
}

/* --- Image inner (background + hover) --- */

#lines-section .lines-grid__image-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

#lines-section .lines-grid__image:hover .lines-grid__image-inner {
  transform: scale(1.08);
}

/* --- Content wrap (stacked behind intro, becomes fixed overlay on open) --- */

#lines-section .lines-content-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  display: grid;
}

#lines-section .lines-content-wrap--fixed {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}

/* --- Content panels (hidden by default) --- */

#lines-section .lines-content {
  opacity: 0;
  pointer-events: none;
  grid-area: 1 / 1 / 2 / 2;
  display: grid;
  grid-template-columns: 100%;
  height: 100%;
  grid-template-rows: 1fr 50%;
  padding: 0 5vw;
  background: linear-gradient(100deg, #B5AE9C 20%, #CBBAA0 80%);
}

#lines-section .lines-content--open {
  opacity: 1;
  pointer-events: auto;
}

#lines-section .lines-content--open .lines-content__row--image {
  pointer-events: none;
}

/* --- Content image slot (top half) --- */

#lines-section .lines-content__row--image {
  overflow: hidden;
}

/* --- Content text area (bottom half) --- */

#lines-section .lines-content__row--text {
  padding: calc(1rem + 4rem) 0 2.5rem;
  display: grid;
  grid-template-areas: 'title number' 'back back' 'meta meta';
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
}

#lines-section .lines-content__title-wrap {
  grid-area: title;
}

#lines-section .lines-content__title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}

#lines-section .lines-content__number {
  grid-area: number;
  place-self: start end;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.55;
  position: relative;
  display: flex;
  align-items: start;
}

#lines-section .lines-content__number .lines-oh > span {
  padding-bottom: 1.75vw;
  padding-left: 6vw;
  padding-top: 0;
  position: relative;
  display: block;
}

#lines-section .lines-content__number .lines-oh > span::before {
  content: "";
  width: 1px;
  height: 111%;
  background: currentColor;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: rotate(25deg);
  transform-origin: 100% 100%;
}

#lines-section .lines-content__back {
  grid-area: back;
  justify-self: start;
  align-self: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

#lines-section .lines-content__back svg {
  width: 100px;
  stroke: #fff;
  stroke-width: 0.3px;
  fill: none;
  transition: transform 0.2s;
  transform-origin: 0% 50%;
  transform: scaleX(0.8);
}

#lines-section .lines-content__back:hover svg {
  transform: scaleX(1);
}

#lines-section .lines-content__desc {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 1.25rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  margin: 0.75rem 0 0;
  max-width: 50ch;
  text-transform: none;
}

#lines-section .lines-content__meta {
  grid-area: meta;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: clamp(0.47rem, 0.8vw, 0.83rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

#lines-section .lines-content__meta-text--center {
  text-align: center;
}

/* --- Lines section responsive --- */

@media (max-width: 768px) {
  #lines-section .lines-grid {
    font-size: clamp(1.6rem, 6.5vw, 2.5rem);
    gap: 15vw;
    padding: var(--space-xl) var(--space-md);
    align-items: stretch;
  }

  #lines-section .lines-grid__row {
    gap: 1rem;
  }

  /* Row 1: text left-aligned on top, image below pushed right */
  #lines-section .lines-grid__row--1 {
    justify-content: flex-start;
  }
  #lines-section .lines-grid__row--1 .lines-slot {
    order: 10;
    margin-left: auto;
  }

  /* Row 2: image on top centered, text below centered */
  #lines-section .lines-grid__row--2 {
    justify-content: center;
  }

  /* Row 3: image first, text below centered with letter-spacing */
  #lines-section .lines-grid__row--3 {
    justify-content: center;
  }
  #lines-section .lines-grid__row--3 .lines-slot {
    order: -1;
  }


  /* Large image slots on mobile */
  #lines-section .lines-slot--1 {
    width: 72vw;
    height: 41vw;
  }
  #lines-section .lines-slot--2 {
    width: 67vw;
    height: 41vw;
  }
  #lines-section .lines-slot--3 {
    width: 80vw;
    height: 44vw;
  }

  /* Content panels */
  #lines-section .lines-content {
    grid-template-rows: 40% 1fr;
  }

  #lines-section .lines-content__row--text {
    padding: 2rem 0 1.5rem;
  }

  #lines-section .lines-content__meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ============================================
   MARQUEE
   ============================================ */

.section--marquee {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg);
}

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

.marquee__track {
  display: flex;
  gap: var(--space-lg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--color-text-muted);
  will-change: transform;
}

.marquee__track span {
  flex-shrink: 0;
}

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

.section--contact {
  background: var(--color-bg);
  text-align: center;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.25em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact__email:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 2;
  background: #e8e4dc;
  color: #1a1a1a;
  padding: 0 var(--space-lg);
}

/* --- Centered email section --- */

.footer__main--centered {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.footer__email {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 300;
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__email:hover {
  opacity: 0.6;
}

/* --- Bottom bar --- */

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer__copyright,
.footer__credits {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.5);
  font-family: var(--font-body);
}

/* --- Animation helpers --- */

.footer__email .line,
.footer__copyright .line,
.footer__credits .line {
  overflow: hidden;
  display: block;
}

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

@media (max-width: 1024px) {
  #prodotti .prodotti__slide-info {
    max-width: 24rem;
  }

  /* ========================================
     LINEA STORY (Pillar) — Mobile Layout
     ======================================== */

  #linea-story {
    height: auto;
    min-height: 100vh;
    padding: 8rem 10% 1rem;
  }

  .linea-story__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Titolo: flex wrap — il testo scorre naturalmente,
     la pill va in fondo grazie a order: 99 */
  .linea-story__type {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.3em;
    font-size: clamp(1.5rem, 6.5vw, 2.8rem);
    line-height: 1.5;
  }

  /* I <br> non servono: il testo va a capo naturalmente */
  .linea-story__type br {
    display: none;
  }

  /* Expand trasparente: i suoi figli diventano flex item del titolo */
  .linea-story__expand {
    display: contents;
  }

  /* Pill (immagine) — ultima riga, sotto TUTTO il testo del titolo.
     Dimensioni fisse per stabilizzare il layout (GSAP gestisce visibilità). */
  .linea-story__pill {
    order: 99;
    display: flex;
    justify-content: center;
    width: 75%;
    margin-top: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
  }

  .linea-story__pill-inner {
    border-radius: 20px;
    width: 100%;
  }

  /* Testo descrittivo: colonna editoriale, 14px, line-height 1.8 */
  .linea-story__copy {
    margin-top: 2rem;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
    width: 100%;
  }

  .linea-story__copy p {
    margin-bottom: 1.3em;
  }

  /* Titolo decorativo: parzialmente tagliato dal bordo inferiore */
  .linea-story__title {
    font-size: clamp(5rem, 25vw, 12rem);
    bottom: -2.5rem;
    margin-top: 0;
  }

  /* ========================================
     LINES SECTION — Mobile Asymmetric Layout
     ======================================== */

  #lines-section {
    min-height: auto;
  }

  #lines-section .lines-grid {
    padding: 8rem 5vw 5rem;
    gap: 0;
    font-size: clamp(1.2rem, 5.5vw, 2rem);
    line-height: 1.3;
    align-items: stretch;
  }

  /* Rows: horizontal wrap — texts flow inline, slots break to own line */
  #lines-section .lines-grid__row {
    flex-wrap: wrap;
    row-gap: 1.2rem;
    column-gap: 0.2em;
    margin-bottom: 80px;
  }

  #lines-section .lines-grid__row:last-child {
    margin-bottom: 60px;
  }

  /* Slots: claim full flex-line, visually constrained by max-width */
  #lines-section .lines-slot {
    display: block;
  }

  /* Image inside slot: relative positioning on mobile */
  #lines-section .lines-slot > .lines-grid__image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
  }

  /* ---- Pillar 1: Text left, Image ~60% right ---- */
  #lines-section .lines-grid__row--1 {
    justify-content: flex-start;
  }

  #lines-section .lines-grid__row--1 .lines-slot--1 {
    flex: 0 0 100%;
    max-width: 58%;
    height: auto !important;
    aspect-ratio: 17 / 8;
    margin-left: auto;
    order: 10;
  }

  /* ---- Pillar 2: Image ~65% left, Text centered below ---- */
  #lines-section .lines-grid__row--2 {
    justify-content: center;
  }

  #lines-section .lines-grid__row--2 .lines-slot--2 {
    flex: 0 0 100%;
    height: auto !important;
  }

  #lines-section .lines-grid__row--2 .lines-grid__image--2 {
    width: 60%;
    height: auto;
    aspect-ratio: 6 / 3;
  }

  /* ---- Pillar 3: Image ~85% centered, Text centered + letter-spacing ---- */
  #lines-section .lines-grid__row--3 {
    justify-content: center;
    column-gap: 0.35em;
  }

  #lines-section .lines-grid__row--3 .lines-slot--3 {
    flex: 0 0 100%;
    height: auto !important;
    order: -1;
  }

  #lines-section .lines-grid__row--3 .lines-grid__image--3 {
    width: 85%;
    height: auto;
    aspect-ratio: 16 / 8;
    margin: 0 auto;
  }

}

@media (max-width: 768px) {
  :root {
    --ui-padding: 1.2rem;
  }

  /* Prodotti responsive */
  #prodotti .prodotti__bg-static { width: 60vw; height: 40vh; border-radius: 120px; }
  #prodotti .prodotti__bottle-img { width: 110vw; height: auto; max-height: none; }
  #prodotti .prodotti__slide-info {
    left: var(--ui-padding);
    right: var(--ui-padding);
    bottom: 2rem;
    max-width: none;
  }
  #prodotti .prodotti__name { font-size: 2rem; width:60%; }
  #prodotti .prodotti__tagline { display: none; }
  #prodotti .prodotti__desc { font-size: 0.85rem; max-width: 70%; }
  #prodotti .prodotti__slide-info .info-testo { bottom: 6vh; }

  /* Footer responsive */
  .footer__email {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* Brand telescope responsive */
  #brand .brand__title {
    font-size: 9vw;
  }


  #brand .brand__images img {
    width: 20vw;
  }

  #brand .brand__images > :nth-child(3) img  { top: 30vw; left: 30vw; }
  #brand .brand__images > :nth-child(4) img  { right: 15vw; top: 30vw; }
  #brand .brand__images > :nth-child(5) img  { top: 10vw; right: 5vw; }
  #brand .brand__images > :nth-child(6) img  { left: 5vw; }
  #brand .brand__images > :nth-child(7) img  { left: 10vw; bottom: 27.5vw; }
  #brand .brand__images > :nth-child(8) img  { bottom: 10vw; left: 35vw; }
  #brand .brand__images > :nth-child(10) img { right: 3vw; bottom: 22vw; }
}

/* ============================================
   SLIDESHOW HERO — Layout & Components
   ============================================ */

.slideshow-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 1;
}

.slideshow-hero .slideshow {
  height: 100%;
  position: relative;
}

.slideshow-hero .center-container,
.slideshow-hero .left-container,
.slideshow-hero .right-container {
  position: absolute;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
}

.slideshow-hero .center-container {
  left: 0;
  width: 100%;
}

.slideshow-hero .left-container {
  left: 0;
  width: 50vw;
}

.slideshow-hero .right-container {
  right: 0;
  width: 50vw;
}

.slideshow-hero .slide {
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  will-change: transform;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.slideshow-hero .slide:active {
  cursor: grabbing;
}

.slideshow-hero .slide img,
.slideshow-hero .slide_image-wrap img {
  object-fit: cover;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: inline-block;
  vertical-align: middle;
}

.slideshow-hero .slide_content-heading {
  color: #fff;
  letter-spacing: -0.2rem;
  will-change: transform;
  padding-right: 1vw;
  font-family: var(--font-display);
  font-size: 4vw;
  font-weight:normal;
  line-height: 1.25em;
  overflow: hidden;
}

.slideshow-hero .slide_center-wrap {
  z-index: 1;
  aspect-ratio: 1;
 /* filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.13)) brightness(115%);*/
  width: 16vw;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%); border-radius: 30px;
}

.slideshow-hero .slide_explore-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.slideshow-hero .slide_explore-cta {
  position: absolute;
  left: 50%;
  top: calc(50% + 8vw + .5rem);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
  color: #fff;
  font-family: 'Tenor Sans', sans-serif;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s ease;
}

.slideshow-hero .slide_explore-cta:hover {
  opacity: .6;
}

.arrow-icon {
  vertical-align: text-top;
  margin-left: 0em;
  position: relative;
  top: .2em;
}

.slideshow-hero .slide_center-inner {
  background-color: #e18f8f;
  position: absolute;
}

.slideshow-hero .slide_content {
  flex-flow: column;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
}

.slideshow-hero .slide_content.inverse {
  justify-content: flex-end;
  align-items: center;
}

.slideshow-hero .slide_image-wrap {
  filter: brightness(80%);
  width: 100%;
  height: 100%;
  position: absolute;
}

.slideshow-hero .slide_content-heading-wrap {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  height: calc(50vh - 10vw - 2rem);
  display: flex;
  overflow: hidden;
}

.slideshow-hero .slide_left-wrap,
.slideshow-hero .slide_right-wrap {
  width: 50vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  position: relative;
}

.slideshow-hero .overflow-hidden {
  overflow: hidden;
}

/* --- Hero portrait layout (height > width * 4/3) --- */
.hero--portrait .right-container {
  right: auto;
  left: 0;
  width: 100vw;
  height: 50vh;
  height: 50dvh;
}

.hero--portrait .left-container {
  left: 0;
  top: auto;
  bottom: 0;
  width: 100vw;
  height: 50vh;
  height: 50dvh;
}

.hero--portrait .slide_left-wrap,
.hero--portrait .slide_right-wrap {
  width: 100%;
  height: 100%;
}

.hero--portrait .slide_center-wrap {
  width: 35vw;
}

.hero--portrait .slide_explore-cta {
  top: calc(50% + 17.5vw + .5rem);
}



/* modifiche */

.arrow-icon {top: 3px;left: -4px;}
.linea-story__copy { max-width: 1000px;}
.linea-story__copy {font-size: clamp(0.85rem, 1.05vw, 1.7rem);}


#lines-section .lines-slot--1 {width: clamp(150px, 18vw, 300px);}
#lines-section .lines-slot--2 {width: clamp(180px, 22vw, 300px);height: clamp(120px, 14vw, 130px);}
#lines-section .lines-slot--3 {width: clamp(220px, 28vw, 300px);}
#lines-section .lines-content__title {text-transform: none;}
#lines-section .lines-content__meta {text-transform: none;}
#lines-section .lines-content__number {line-height: normal;}

@media (max-width: 768px) {
  .site-logo img {
    height: clamp(2.8rem, 7vw, 4rem);
  }
  .slideshow-hero .slide_content-heading {
    letter-spacing: 0;
    font-size: 8vw;
  }
  #lines-section .lines-content__number {
    font-size: 2rem;
    line-height: 1;
    overflow: visible;
  }
  #lines-section .lines-content__number .lines-oh {
    overflow: visible;
  }
  #lines-section .lines-content__number .lines-oh > span {
    padding-left: 1.8rem;
    padding-bottom: 0;
    padding-top: 0;
  }
  #lines-section .lines-content__number .lines-oh > span::before {
    height: 2.5rem;
    width: 1px;
    bottom: auto;
    top: -0.2rem;
    left: 0.4rem;
  }
  #lines-section .lines-content__meta {
    flex-direction: row;
    gap: 0;
    font-size: clamp(0.55rem, 1.5vw, 0.75rem);
    margin-bottom: 2rem;
  }
  .footer__main--centered {
    min-height: 30vh;
  }
}
