@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Instrument+Serif:ital@0;1&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --black: #0d0d0d;
  --white: #fafaf8;
  --honey: #d4a853;
  --gray: #8a8a8a;
  --cream: #f0ebe3;
  --header-scrolled-bg: rgba(13, 13, 13, 0.55);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-border-scrolled: rgba(255, 255, 255, 0.06);
  --muted-border: rgba(255, 255, 255, 0.25);
  --muted-bg: rgba(255, 255, 255, 0.04);
  --muted-bg-hover: rgba(255, 255, 255, 0.12);
  --hero-texture: rgba(255, 255, 255, 0.028);
  --top-bar-h: 44px;
  /* Spazio per le discendenti (g, y, p, q) così il testo non va sotto lo sfondo */
  --descender-space: 0.42em;
  /* Sfumature sezioni (tema scuro): alternanza leggera */
  --section-bg-base: #0d0d0d;
  --section-bg-alt: #111111;
}

[data-theme="light"] {
  --black: #f0ebe3;
  --white: #1a1a1a;
  --gray: #5c5c5c;
  --header-scrolled-bg: rgba(240, 235, 227, 0.88);
  --header-border: rgba(0, 0, 0, 0.08);
  --header-border-scrolled: rgba(0, 0, 0, 0.06);
  --muted-border: rgba(0, 0, 0, 0.2);
  --muted-bg: rgba(0, 0, 0, 0.04);
  --muted-bg-hover: rgba(0, 0, 0, 0.08);
  --hero-texture: rgba(0, 0, 0, 0.035);
  /* Sfumature sezioni (tema chiaro): alternanza leggera */
  --section-bg-base: #f0ebe3;
  --section-bg-alt: #e8e3db;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* Spazio per discendenti (g, y, p, q): il testo non va sotto lo sfondo */
p,
.chi-siamo__lead,
.chi-siamo__text,
.chi-siamo__outro-statement,
.chi-siamo__card-text,
.prodotti__copy-text,
.faq__answer {
  padding-bottom: 0.22em;
}

::selection {
  background: var(--honey);
  color: var(--black);
}

/* Top bar: contatti + Richiedi un preventivo */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-h);
  z-index: 51;
  background: linear-gradient(180deg, #ddb04d 0%, var(--honey) 50%, #c99a3f 100%);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.top-bar-inner {
  width: min(1280px, 96%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.top-bar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.7);
}

.top-bar-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-bar-link:hover {
  color: var(--black);
  opacity: 1;
}

.top-bar-text {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.88);
}

.top-bar-sep {
  color: rgba(0, 0, 0, 0.28);
  font-weight: 300;
  font-size: 0.65rem;
  user-select: none;
}

.top-bar-cta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-bar-cta:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .top-bar-contact {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
    padding: 0 0.75rem;
  }
  .top-bar-cta {
    letter-spacing: 0.1em;
    padding: 0.45rem 0.9rem;
  }
}

/* Navbar: sotto la top bar, più ordinata e sfondo sfuocato allo scroll */
.site-header {
  top: var(--top-bar-h);
  left: 0;
  right: 0;
  min-height: 4.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .site-header {
    padding: 1.25rem 2.5rem;
  }
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--header-border) 20%, var(--header-border) 80%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--header-border-scrolled);
}

.site-header.is-scrolled::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, var(--header-border-scrolled) 15%, var(--header-border-scrolled) 85%, transparent 100%);
}

.site-header a,
.site-header button {
  position: relative;
  z-index: 2;
}

.site-header a[href="/"] {
  transition: opacity 0.25s ease;
}

.site-header a[href="/"]:hover {
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .header-actions {
    gap: 0.75rem;
  }
}

.header-icon {
  background: var(--white);
}

.theme-toggle {
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.theme-toggle .theme-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-icon--moon {
  display: block;
}

.theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--moon {
  display: none;
}

[data-theme="light"] .theme-icon--sun {
  display: block;
}

/* Tema chiaro: divisioni tra sezioni visibili */
[data-theme="light"] .section-divider-top::before {
  background: linear-gradient(90deg, transparent 10%, rgba(0, 0, 0, 0.08) 50%, transparent 90%);
}

/* Tema chiaro: numero decorativo (manifesto e simili) */
[data-theme="light"] .number {
  color: rgba(0, 0, 0, 0.05);
}

/* Tema chiaro: FAQ stesso stile visibile (bordi e card) */
[data-theme="light"] .faq__item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq__item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .faq__item.open {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq__item.open .faq__answer {
  color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .faq__header {
  border-left-color: rgba(212, 168, 83, 0.5);
}

.font-serif {
  font-family: 'Instrument Serif', serif;
}

/* Typography: spazio per discendenti (g, y, p, q) così non vanno sotto lo sfondo */
.text-display {
  font-size: clamp(3.25rem, 15vw, 13rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  padding-bottom: var(--descender-space);
}

.text-headline {
  font-size: clamp(2.1rem, 6.8vw, 5.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  padding-bottom: var(--descender-space);
}

.text-stroke {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.text-stroke-honey {
  -webkit-text-stroke: 1.5px var(--honey);
  color: transparent;
}

/* Hero: full viewport, responsive ottimizzato */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(4rem + var(--top-bar-h, 44px)) 0.75rem 3.5rem;
  box-sizing: border-box;
  isolation: isolate;
}

/* Texture legno: venature sottili, adatta a tema chiaro e scuro */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Venature: strisce sottili a angoli da legno (grain) */
    repeating-linear-gradient(
      88deg,
      transparent 0,
      transparent 1px,
      var(--hero-texture) 1px,
      var(--hero-texture) 2px
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 4px,
      var(--hero-texture) 4px,
      var(--hero-texture) 5px
    ),
    repeating-linear-gradient(
      90.5deg,
      transparent 0,
      transparent 2px,
      var(--hero-texture) 2px,
      var(--hero-texture) 2.4px
    ),
    /* Sfumature calde */
    radial-gradient(ellipse 85% 55% at 75% 45%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 15% 85%, rgba(255, 255, 255, 0.02) 0%, transparent 55%);
  pointer-events: none;
}

.hero-wrapper {
  width: min(1480px, 98.5vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: stretch;
  min-height: 0;
}

@media (min-width: 600px) {
  .hero-wrapper {
    gap: clamp(2rem, 5vw, 3rem);
    min-height: min(70vh, 600px);
  }
}

@media (min-width: 768px) {
  .hero-wrapper {
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(3rem, 6vw, 4rem);
    min-height: min(82vh, 720px);
  }
}

.hero-col--copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  min-height: 0;
}

@media (min-width: 600px) {
  .hero-col--copy {
    gap: clamp(1.25rem, 3vw, 2rem);
  }
}

@media (min-width: 768px) {
  .hero-col--copy {
    text-align: left;
    align-items: flex-start;
    padding-left: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-left: 3px solid rgba(212, 168, 83, 0.4);
  }
}

.hero-col--gallery {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.2fr 1fr;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: min(45vh, 280px);
  max-height: min(60vh, 420px);
}

@media (min-width: 480px) {
  .hero-gallery {
    gap: 0.6rem;
    min-height: min(48vh, 300px);
    max-height: min(64vh, 460px);
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (min-width: 600px) {
  .hero-gallery {
    min-height: min(48vh, 320px);
    max-height: min(62vh, 460px);
    max-width: 580px;
  }
}

@media (min-width: 768px) {
  .hero-gallery {
    max-width: 100%;
    margin: 0;
    min-height: 340px;
    max-height: none;
    gap: 0.85rem;
    grid-template-rows: 1.25fr 1fr;
  }
}

/* Carousel: dissolvenza incrociata (crossfade), niente scorrimento */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

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

.hero-carousel-slide img.hero-carousel-img--contain {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.08);
}

.hero-img {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.3);
  margin: 0;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
  .hero-img {
    border-radius: 1rem;
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.3),
      0 24px 50px rgba(0, 0, 0, 0.35);
  }
}

.hero-img:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .hero-img--sec {
    transform: translateY(8%);
  }
  .hero-img--third {
    transform: translateY(-8%);
  }
  .hero-img:hover {
    transform: translateY(0) scale(1.02);
  }
  .hero-img--sec:hover,
  .hero-img--third:hover {
    transform: translateY(0) scale(1.02);
  }
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-img:hover::after {
  opacity: 1;
}

.hero-img .hero-carousel-slide img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img:hover .hero-carousel-slide img {
  transform: scale(1.05);
}

.hero-img:hover .hero-carousel-slide img.hero-carousel-img--contain {
  transform: none;
}

.hero-img-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-img--main:hover .hero-img-caption {
  opacity: 1;
  transform: translateY(0);
}

.hero-img--main {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
}

.hero-img--accent {
  outline: 1px solid rgba(212, 168, 83, 0.5);
  outline-offset: 3px;
}

.hero-img--sec {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
}

.hero-img--third {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
}

.hero-eyebrow {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (min-width: 600px) {
  .hero-eyebrow {
    display: inline-flex;
    letter-spacing: 0.35em;
  }
}

.hero-eyebrow::before {
  content: '';
  width: clamp(1.25rem, 4vw, 2rem);
  height: 1px;
  background: linear-gradient(90deg, var(--honey), transparent);
  opacity: 0.75;
}

.hero-title {
  font-size: clamp(1.95rem, 8.5vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding-bottom: var(--descender-space);
}

@media (min-width: 480px) {
  .hero-title {
    font-size: clamp(2.15rem, 7.8vw, 4.9rem);
  }
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  color: var(--honey);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-top: 0.06em;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  max-width: 100%;
  padding: 0 0.25rem 0.15em;
  color: var(--gray);
}

@media (min-width: 480px) {
  .hero-subtitle {
    font-size: clamp(0.9375rem, 1.55vw, 1.2rem);
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 0 0.15em;
  }
}

@media (min-width: 768px) {
  .hero-subtitle {
    max-width: 100%;
    margin: 0;
    padding-right: 1rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-actions {
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-btn-primary {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* Hero stats: solo desktop, sotto i bottoni */
.hero-stats {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
  }
}

.hero-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats__value {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--honey);
  line-height: 1;
}

.hero-stats__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.btn-ghost {
  border-color: var(--muted-border);
  background: var(--muted-bg);
}

.btn-ghost::before {
  background: var(--muted-bg-hover);
}

.btn-ghost:hover {
  border-color: var(--honey);
  color: var(--black);
}

.hero-scroll-hint {
  display: none;
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.8;
}

@media (min-width: 600px) {
  .hero-scroll-hint {
    display: flex;
    bottom: 1rem;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    opacity: 0.85;
  }
}

@media (min-width: 768px) {
  .hero-scroll-hint {
    bottom: 1.25rem;
  }
}

.hero-scroll-line {
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--honey), transparent);
  border-radius: 2px;
  animation: scroll-line 2.2s ease-in-out infinite;
}

@media (min-width: 480px) {
  .hero-scroll-line {
    height: 2rem;
  }
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Animations */
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-slide-up {
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade {
  animation: fade-in 1s ease forwards;
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}

/* Marquee carosello: stile rifatto, scorrimento più veloce */
.marquee-section {
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0 1.5rem;
  width: max-content;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
}

.marquee-item--accent {
  color: var(--honey);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--honey);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Chi siamo: stile raffinato */
.chi-siamo {
  padding: clamp(4.5rem, 11vw, 6.5rem) 0;
  background: var(--black);
  position: relative;
  isolation: isolate;
}

.chi-siamo__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 40% at 20% 20%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 85% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
  pointer-events: none;
}

.chi-siamo__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 91vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.chi-siamo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.07) 20%, rgba(255, 255, 255, 0.07) 80%, transparent 95%);
  z-index: 1;
}

.chi-siamo__header {
  margin-bottom: clamp(3rem, 6.5vw, 4.5rem);
  padding-left: 0;
}

@media (min-width: 768px) {
  .chi-siamo__header {
    padding-left: 2rem;
    border-left: 3px solid rgba(212, 168, 83, 0.5);
  }
}

.chi-siamo__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.9rem;
}

.chi-siamo__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-bottom: var(--descender-space);
}

.chi-siamo__title-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--honey);
  font-weight: 400;
}

.chi-siamo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 900px) {
  .chi-siamo__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 3.5vw, 2.75rem);
  }
  .chi-siamo__media--first {
    order: -1;
  }
}

.chi-siamo__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.chi-siamo__lead {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.7;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.015em;
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chi-siamo__text-block {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.chi-siamo__text {
  font-size: clamp(1.05rem, 1.12vw, 1.15rem);
  line-height: 1.85;
  color: var(--gray);
  margin: 0;
}

/* Colonna media: stessa altezza del testo, niente sticky */
.chi-siamo__media {
  display: block;
  position: relative;
}

@media (min-width: 900px) {
  .chi-siamo__media {
    align-self: stretch;
    min-height: 0;
  }
}

.chi-siamo__img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 20px 48px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.4s ease;
  /* Altezza uguale alla prima parte di testo: su desktop riempie la colonna */
  aspect-ratio: 16/10;
}

@media (min-width: 900px) {
  .chi-siamo__img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }
}

.chi-siamo__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.chi-siamo__img:hover {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.3),
    0 28px 56px rgba(0, 0, 0, 0.4);
}

.chi-siamo__img:hover::after {
  opacity: 1;
}

/* Carosello Chi siamo: crossfade come hero, nessuno scroll */
.chi-siamo-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.chi-siamo-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.chi-siamo-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.chi-siamo-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.chi-siamo-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chi-siamo__img:hover .chi-siamo-carousel-slide img {
  transform: scale(1.04);
}

.chi-siamo__bottom {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Card cucina: stile editoriale, immagine in evidenza */
.chi-siamo__card {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  transition: none;
}

@media (min-width: 768px) {
  .chi-siamo__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0;
    align-items: stretch;
    min-height: 340px;
  }
}

.chi-siamo__card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .chi-siamo__card-media {
    aspect-ratio: auto;
    border-radius: 0 0.75rem 0.75rem 0;
    min-height: 340px;
  }
}

.chi-siamo__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.chi-siamo__card:hover .chi-siamo__card-media img {
  transform: scale(1.06);
}

.chi-siamo__card-content {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: none;
  border-radius: 0.5rem 0.5rem 0 0;
}

@media (min-width: 768px) {
  .chi-siamo__card-content {
    padding: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.chi-siamo__card-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.5rem;
}

.chi-siamo__card-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-bottom: var(--descender-space);
}

.chi-siamo__card-text {
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.8;
  color: var(--gray);
  margin: 0;
}

/* Card "riferimento Ticino": colori cantone + simbolo bandiera */
.chi-siamo__outro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.25rem); /* spazio per discendenti (g, y, p, q) */
  background: linear-gradient(135deg, rgba(232, 66, 63, 0.08) 0%, rgba(0, 0, 0, 0.2) 25%, rgba(38, 139, 204, 0.08) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.chi-siamo__outro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E8423F 0%, #E8423F 50%, #268BCC 50%, #268BCC 100%);
  border-radius: 1rem 1rem 0 0;
}

.chi-siamo__outro-flag {
  flex-shrink: 0;
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.chi-siamo__outro-flag-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chi-siamo__outro-body {
  flex: 1;
  min-width: min(100%, 20rem);
}

.chi-siamo__outro-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 0.4rem 0;
}

.chi-siamo__outro-statement {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.chi-siamo__outro-statement strong,
.chi-siamo__outro-statement b {
  color: var(--honey);
  font-weight: 600;
}

/* I nostri Marchi: loghi grandi, stile curato, non in menu */
.marchi {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--black);
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.marchi__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.marchi__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, 94vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.marchi__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.marchi__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.75rem;
}

.marchi__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding-bottom: var(--descender-space);
}

.marchi__title-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--honey);
}

.marchi__carousel {
  --marchi-gap: clamp(1rem, 2.2vw, 1.5rem);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.marchi__track {
  display: flex;
  gap: var(--marchi-gap);
  width: max-content;
  animation: marchi-scroll 44s linear infinite;
  will-change: transform;
}

.marchi__group {
  display: flex;
  gap: var(--marchi-gap);
  flex-shrink: 0;
}

.marchi__carousel:hover .marchi__track {
  animation-play-state: paused;
}

@keyframes marchi-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--marchi-gap) / 2))); }
}

.marchi__card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(10.5rem, 15vw, 13rem);
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(0.7rem, 1.6vw, 1rem);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.14);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.marchi__card:hover {
  border-color: rgba(212, 168, 83, 0.45);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(212, 168, 83, 0.2);
  transform: translateY(-3px);
}

.marchi__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.2rem;
}

.marchi__logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.marchi__card:hover .marchi__logo img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .marchi__track {
    animation: none;
  }
}

/* Prodotti: layout alternato immagine/testo, numeri, full-bleed */
.prodotti {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--black);
  position: relative;
  isolation: isolate;
}

.prodotti__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 35% at 15% 10%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 25% at 90% 90%, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
  pointer-events: none;
}

.prodotti__header {
  position: relative;
  z-index: 1;
  width: min(1160px, 91vw);
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  padding: 0 1.5rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .prodotti__header {
    padding-left: 2rem;
    border-left: 3px solid rgba(212, 168, 83, 0.5);
  }
}

.prodotti__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.9rem;
}

.prodotti__title {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  padding-bottom: var(--descender-space);
}

.prodotti__title-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--honey);
  font-weight: 400;
}

.prodotti__list {
  position: relative;
  z-index: 1;
}

/* Blocco singolo: immagine + testo, alternati sinistra/destra */
.prodotti__item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prodotti__item:last-child {
  border-bottom: none;
}

@media (min-width: 900px) {
  .prodotti__item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: min(50vh, 380px);
  }

  .prodotti__item--img-right {
    direction: rtl;
  }

  .prodotti__item--img-right .prodotti__media,
  .prodotti__item--img-right .prodotti__copy {
    direction: ltr;
  }
}

.prodotti__media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

@media (min-width: 900px) {
  .prodotti__media {
    min-height: 0;
  }
}

.prodotti__media-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.prodotti__media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.prodotti__item:hover .prodotti__media-inner img {
  transform: scale(1.06);
}

/* Numero grande sulla foto */
.prodotti__num {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 900px) {
  .prodotti__num {
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .prodotti__item--img-right .prodotti__num {
    left: auto;
    right: 1.5rem;
  }
}

.prodotti__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2rem);
  background: var(--black);
}

@media (min-width: 900px) {
  .prodotti__copy {
    padding: clamp(1.5rem, 3vw, 2rem);
  }
}

.prodotti__copy-title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.85rem;
  padding-bottom: var(--descender-space);
}

.prodotti__copy-text {
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  color: var(--gray);
  margin: 0;
  max-width: 42ch;
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--honey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  color: var(--black);
  border-color: var(--honey);
}

.btn-fill {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-fill::before {
  background: var(--honey);
}

.btn-fill:hover {
  color: var(--black);
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* Horizontal scroll */
.scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Galleria: tutte le foto stessa dimensione, niente bordi neri */
.galleria-wrap {
  padding-bottom: 1rem;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .galleria-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 900px) {
  .galleria-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.galleria__item {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
  font: inherit;
  color: inherit;
  text-align: left;
}

.galleria__item--hidden {
  display: none;
}

.galleria-grid.is-expanded .galleria__item--hidden {
  display: block;
}

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

.galleria__item:hover img {
  opacity: 0.92;
}

.galleria__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.galleria__item:hover::after {
  opacity: 1;
}

.galleria__actions {
  text-align: center;
  padding: 0 1rem 2rem;
}

.galleria__btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: flex !important;
}

.lightbox:not(.is-open)[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: min(90vw, 500px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__arrow:hover {
  background: rgba(212, 168, 83, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__arrow--prev {
  left: 1.5rem;
}

.lightbox__arrow--next {
  right: 1.5rem;
}

/* Links */
.link {
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--honey);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover::after {
  width: 100%;
}

/* Accordion */
/* FAQ */
.faq {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--black);
}

.faq__inner {
  position: relative;
  z-index: 0;
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq__header {
  margin-bottom: clamp(2.25rem, 4.5vw, 3rem);
  padding-left: 0;
}

@media (min-width: 768px) {
  .faq__header {
    padding-left: 1.75rem;
    border-left: 3px solid rgba(212, 168, 83, 0.5);
  }
}

.faq__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.6rem;
}

.faq__title {
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.faq__item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.09);
}

.faq__item.open {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
  line-height: 1.35;
}

.faq__question:hover {
  color: var(--honey);
}

.faq__question .accordion-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--honey);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
}

.faq__item.open .faq__question .accordion-icon {
  background: rgba(212, 168, 83, 0.15);
  border-color: rgba(212, 168, 83, 0.5);
}

.faq__answer {
  padding: 0 1.5rem 1.35rem 1.5rem;
  padding-left: 1.5rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.06vw, 1.15rem);
  line-height: 1.75;
  color: var(--gray);
}

.faq__item.open .faq__answer {
  color: rgba(255, 255, 255, 0.82);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.open {
  grid-template-rows: 1fr;
}

.accordion-content > div {
  overflow: hidden;
}

.accordion-icon {
  transition: transform 0.4s ease;
}

.accordion.open .accordion-icon {
  transform: rotate(45deg);
}

/* Form */
.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray);
  padding: 1rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--white);
  transition: border-color 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: var(--honey);
}

.input::placeholder {
  color: var(--gray);
}

.input--select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 top 50%;
  padding-right: 1.75rem;
}

.input--textarea {
  resize: vertical;
  min-height: 100px;
}

/* Contact section */
.contatto {
  padding: clamp(4rem, 10vw, 6rem) 1.5rem;
  background: var(--black);
}

.contatto__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contatto__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contatto__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.5rem;
}

.contatto__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  padding-bottom: var(--descender-space);
}

.contatto__title-accent {
  color: var(--honey);
}

.contatto__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

@media (max-width: 768px) {
  .contatto__grid {
    grid-template-columns: 1fr;
  }
}

.contatto__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.contatto__info {
  flex-shrink: 0;
  background: var(--muted-bg);
  border: 1px solid var(--muted-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.contatto__ragione {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.contatto__address,
.contatto__tel,
.contatto__fax {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--white);
}

.contatto__fax {
  margin-bottom: 0;
}

.contatto__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contatto__link {
  color: var(--honey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contatto__link:hover {
  color: var(--white);
}

.contatto__form-wrap {
  display: flex;
  flex-direction: column;
  background: var(--muted-bg);
  border: 1px solid var(--muted-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.contatto__form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  flex: 1;
}

.contatto__status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid var(--muted-border);
}

.contatto__status--success {
  color: #98f5b5;
  background: rgba(58, 167, 95, 0.18);
  border-color: rgba(58, 167, 95, 0.45);
}

.contatto__status--error,
.contatto__status--captcha {
  color: #ffd0d0;
  background: rgba(179, 69, 69, 0.2);
  border-color: rgba(179, 69, 69, 0.45);
}

.contatto__recaptcha-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray);
}

.contatto__recaptcha-note a {
  color: var(--honey);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contatto__recaptcha-note a:hover {
  color: var(--white);
}

.contatto__recaptcha-error {
  margin: -0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #ff8a8a;
}

/* reCAPTCHA badge nascosto: disclosure gia presente nel form */
.grecaptcha-badge {
  visibility: hidden !important;
}

.contatto__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .contatto__form-row {
    grid-template-columns: 1fr;
  }
}

.contatto__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contatto__field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contatto__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--muted-border);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contatto__input::placeholder {
  color: var(--gray);
}

.contatto__input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.contatto__input:focus {
  outline: none;
  border-color: var(--honey);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.contatto__input--select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-height: 3rem;
  line-height: 1.4;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.contatto__input--select:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.contatto__input--select:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.contatto__input--select option {
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 0.75rem;
}

/* Tema chiaro: select leggibile */
[data-theme="light"] .contatto__input--select {
  background-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contatto__input--select:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contatto__input--select:focus {
  background-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contatto__input--select option {
  background: var(--black);
  color: var(--white);
}

.contatto__input--textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 0.875rem;
}

.contatto__submit {
  margin-top: 0.25rem;
  align-self: flex-start;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contatto__submit-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.contatto__map-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--muted-border);
}

@media (max-width: 768px) {
  .contatto__map-wrap {
    min-height: 280px;
  }
}

.contatto__map {
  position: relative;
  flex: 1;
  min-height: 200px;
  background: var(--muted-bg);
}

.contatto__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contatto__map-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--honey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contatto__map-link:hover {
  color: var(--white);
}

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

.footer {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(2rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--black);
}

.footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--honey) 20%, var(--honey) 80%, transparent 100%);
  opacity: 0.9;
}

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

/* Blocco principale: brand, nav, contatti */
.footer__main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* Brand e tagline */
.footer__brand {
  max-width: 400px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.9;
}

.footer__logo:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 4px;
}

.footer__logo-img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer__tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray);
  letter-spacing: 0.01em;
}

/* Navigazione */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-label,
.footer__contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--honey);
  margin-bottom: 0.25rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links li {
  margin: 0;
  padding: 0;
}

.footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--honey);
}

.footer__link:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
  color: var(--honey);
}

/* Contatti: indirizzo, telefono, CTA */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
}

.footer__company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer__street,
.footer__place {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
}

.footer__tel {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  margin-top: 0.15rem;
}

.footer__tel:hover {
  color: var(--honey);
}

.footer__tel:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
  color: var(--honey);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--honey);
  text-decoration: none;
  margin-top: 0.35rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__cta:hover {
  color: var(--white);
  border-bottom-color: var(--honey);
}

.footer__cta:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

/* Separatore */
.footer__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent 100%);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Barra inferiore: copyright a sinistra, Privacy policy in basso a destra */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

.footer__copyright {
  margin: 0;
}

.footer__webarte {
  color: var(--honey);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__webarte:hover {
  color: var(--honey);
  opacity: 0.9;
}

.footer__webarte:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

.footer__privacy {
  margin-left: auto;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__privacy:hover {
  color: var(--honey);
}

.footer__privacy:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
  color: var(--honey);
}

/* Footer – responsive */
@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .footer__contact {
    grid-column: 1 / -1;
    min-width: auto;
  }

  .footer__bottom {
    justify-content: flex-start;
  }

  .footer__privacy {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__contact {
    grid-column: 1;
  }

  .footer__bottom {
    gap: 0.75rem;
  }
}

/* Menu */
.menu-panel {
  position: fixed;
  inset: 0;
  background: var(--honey);
  z-index: 90;
  clip-path: circle(0% at calc(100% - 3rem) calc(var(--top-bar-h, 40px) + 2rem));
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-panel.open {
  clip-path: circle(150% at calc(100% - 3rem) calc(var(--top-bar-h, 40px) + 2rem));
}

/* Pulsante chiudi menu (X) – allineato a Sede e Contatti */
.menu-close {
  position: absolute;
  top: calc(var(--top-bar-h, 44px) + 1rem);
  left: 2.5rem; /* come p-10 del blocco Sede/Contatti */
  right: auto;
  z-index: 95;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--black);
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
  background: var(--black);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.menu-close:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.menu-close__icon {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 768px) {
  .menu-close {
    left: calc(100% - 24rem + 5rem); /* bordo sinistro della colonna Sede/Contatti (w-96 + p-20) */
  }
}

/* Contatti nel menu: TEL e FAX su due righe */
.menu-panel__tel-fax {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.menu-panel__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.menu-panel__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.7);
}

.menu-panel__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-panel__link:hover {
  color: rgba(0, 0, 0, 0.7);
}

.menu-panel__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray), transparent);
}

/* Linea di separazione super leggera tra tutte le sezioni */
.section-divider-top {
  position: relative;
  isolation: isolate;
}

.section-divider-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.06) 50%, transparent 90%);
  z-index: 1;
}

/* Theme: sfondo pulito, niente griglia */
.body-bg {
  background: var(--section-bg-base);
  transition: background 0.4s ease;
}

/* Sfumature sezioni: alternanza base / alt per far distinguere le aree */
.marquee-section {
  background: var(--section-bg-base);
}

.chi-siamo {
  background: var(--section-bg-alt);
}

.marchi {
  background: var(--section-bg-base);
}

/* Prodotti: sfondo uniforme con titolo e card (stesso colore), niente separazione netta con galleria */
.prodotti {
  background: var(--black);
}

/* Galleria: la più chiara; dopo di essa alternanza invertita */
#galleria {
  background: var(--section-bg-alt);
}

#manifesto {
  background: var(--section-bg-base);
}

#manifesto::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.faq {
  background: var(--section-bg-alt);
}

.contatto {
  background: var(--section-bg-base);
}

/* Number */
.number {
  font-size: clamp(6rem, 20vw, 20rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  position: absolute;
  user-select: none;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .text-display {
    font-size: clamp(3rem, 15vw, 8rem);
  }
  
  .text-headline {
    font-size: clamp(2rem, 8vw, 4rem);
  }
  
  .hide-mobile {
    display: none !important;
  }
}

/* Hero: più spazio in verticale e tra i testi su mobile, immagini più grandi */
@media (max-width: 767px) {
  .hero-section {
    padding: calc(4rem + var(--top-bar-h, 44px)) 0.75rem 3.5rem;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-wrapper {
    gap: 2.25rem;
  }

  .hero-col--copy {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    line-height: 1.8;
  }

  .hero-actions {
    gap: 0.85rem;
    margin-top: 0.5rem;
  }

  .hero-actions .btn {
    padding: 1rem 1.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 479px) {
  .hero-section {
    padding: calc(3.5rem + var(--top-bar-h, 44px)) 0.5rem 3rem;
  }

  .hero-wrapper {
    gap: 1.75rem;
  }

  .hero-col--copy {
    gap: 1.25rem;
  }

  .hero-gallery {
    min-height: min(48vh, 300px);
    max-height: min(62vh, 440px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 0.35rem;
  }

  .hero-actions .btn {
    justify-content: center;
    padding: 0.95rem 1.25rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--honey);
}

/* ==========================================================================
   Consenso privacy: sito sfuocato finché non si accetta
   ========================================================================== */

.site-content.consent-blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.consent-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.consent-banner {
  background: var(--black);
  border-top: 1px solid var(--muted-border);
  border-radius: 16px 16px 0 0;
  padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  width: 100%;
  max-width: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.consent-banner__text {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  color: var(--white);
  flex: 1 1 280px;
}

.consent-banner__link {
  color: var(--honey);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.consent-banner__link:hover {
  color: #e0b85c;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.consent-banner__btn {
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.consent-banner__btn--reject {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--muted-border);
}

.consent-banner__btn--reject:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.consent-banner__btn--accept {
  background: var(--honey);
  color: var(--black);
}

.consent-banner__btn--accept:hover {
  background: #e0b85c;
  transform: translateY(-1px);
}

@keyframes consent-banner-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.consent-banner--shake {
  animation: consent-banner-shake 0.5s ease-in-out;
}

/* Pagina Privacy policy: layout semplice */
.privacy-page {
  padding: calc(clamp(3rem, 8vw, 5rem) + var(--top-bar-h, 44px) + 4.5rem) 1.5rem clamp(4rem, 10vw, 6rem);
}

.privacy-page__inner {
  max-width: 680px;
  margin: 0 auto;
}

.privacy-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.privacy-page__updated {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.privacy-page__section {
  margin-bottom: 1.75rem;
}

.privacy-page__h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.privacy-page__section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
}

.privacy-page__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted-border);
}

.privacy-page__link {
  color: var(--honey);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-page__link:hover {
  color: #e0b85c;
}

/* Pagine errore 404 / 500 — stile FINDOOR */
.error-page {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(4rem, 10vw, 6rem);
  background: var(--black);
  isolation: isolate;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(212, 168, 83, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .error-page__inner {
    text-align: left;
    padding-left: 2rem;
    border-left: 3px solid rgba(212, 168, 83, 0.5);
  }
}

.error-page__code {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.04);
  margin: 0 0 0.5rem 0;
  user-select: none;
}

.error-page__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  padding-bottom: var(--descender-space, 0.18em);
}

.error-page__message {
  font-size: clamp(0.9375rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--gray);
  margin: 0 0 1.75rem 0;
}

.error-page__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
