/* ================================================================
   BLENDA – DESIGN SYSTEM v2
   Palette: Pietra pugliese / Cuoio / Nero / Oro
   Font: Cormorant Garamond + Inter
   ================================================================ */

/* Garantisce testo visibile subito, anche prima del caricamento font */
@font-face {
  font-family: 'Cormorant Garamond';
  font-display: swap;
  src: local('Georgia'), local('Times New Roman');
}
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Helvetica Neue'), local('Arial');
}

/* ── 1. TOKEN ─────────────────────────────────────────────────── */
:root {
  --stone:      #F4EFE6;
  --stone-mid:  #EAE3D5;
  --dark:       #1A1A18;
  --dark-mid:   #2C2A26;
  --gold:       #C4924A;
  --gold-lt:    #D4B062;
  --white:      #FAFAF8;
  --grey:       #9A9690;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --hh: 76px; /* header height */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── 2. RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--dark-mid);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* sostituito dal cursore custom */
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── 3. SCROLL PROGRESS BAR ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 9999;
  transition: width 80ms linear;
}

/* ── 4. CURSORE CUSTOMIZZATO ─────────────────────────────────── */
/* Punto piccolo: segue il mouse in tempo reale via GSAP quickTo */
.cur-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  /* offset: centro dell'elemento sul cursore */
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Cerchio grande: segue con ritardo (scrub 0.4s) — GSAP quickTo */
.cur-ring {
  position: fixed;
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
  opacity: 0.6;
}

/* Testo contestuale dentro il cerchio */
.cur-label {
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

/* Stato espanso: il cerchio si allarga mostrando il testo */
.cur-ring.is-expanded {
  width: 72px; height: 72px;
  opacity: 0.9;
}
.cur-ring.is-expanded .cur-label { opacity: 1; }

/* Su touch device: nascondi entrambi */
@media (pointer: coarse) {
  .cur-dot, .cur-ring { display: none; }
  body { cursor: auto; }
}

/* ── 5. LAYOUT CONTAINER ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px)  { .container { padding: 0 2rem; } }
@media (min-width: 1200px) { .container { padding: 0 3rem; } }

/* ── 6. HEADER / NAVBAR ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000; /* Superiore al menu mobile (999) */
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.scrolled {
  background-color: rgba(26,26,24,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  max-width: 1600px;
  margin: 0 auto;
  transition: padding 0.4s var(--ease);
}
.header.scrolled .nav { padding: 1rem 5%; }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 101;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  border: 2px solid var(--white);
  padding: 2px;
  background: var(--dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}
/* Sub-linea animata */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-ig {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-ig:hover { color: var(--gold); }
.nav-ig svg { width: 20px; height: 20px; }

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}
.hbg-line {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.hamburger.open .hbg-line:first-child { transform: translateY(3.75px) rotate(45deg); background: var(--white); }
.hamburger.open .hbg-line:last-child  { transform: translateY(-3.75px) rotate(-45deg); background: var(--white); }

/* Menu mobile overlay */
.mobile-menu {
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100vh; height: 100dvh; /* Copre interamente lo schermo, fix per iOS */
  background: var(--dark); /* Sfondo solido e scuro */
  z-index: 999; /* Sotto all'header (1000) per lasciare visibile l'hamburger */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

/* Rimosso mobile-close ridondante - usiamo l'hamburger */

.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.mobile-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }
.mobile-link--cta {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.mobile-tagline {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── 7. BOTTONI ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(196,146,74,0.3);
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.25s, border-color 0.25s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--gold); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: #25D366;
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover {
  background: #1fba58;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.3);
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--white);
  color: var(--dark);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  width: 100%;
  justify-content: center;
}
.btn-email:hover {
  background: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,255,255,0.15);
}

/* ── 8. HERO: FULL SCREEN ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
body.loaded .hero-video { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,24,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  padding: 0 2rem;
  margin-top: 2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
}

.hw { display: inline-block; }
.hw--italic { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-actions { display: flex; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.scroll-hint-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(196,146,74,0.8), transparent);
  animation: lineDown 2s ease-in-out infinite;
}
@keyframes lineDown {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.7; }
  50%       { transform: scaleY(0.5); transform-origin: bottom; opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(3rem, 15vw, 4.5rem); }
}

/* ── 9. STATEMENT ────────────────────────────────────────────── */
.statement {
  background: var(--dark);
  padding: 12rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.statement-text {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}
.statement-text em {
  font-style: italic;
  color: var(--gold);
}

/* ── 10. SEZIONE CHI SIAMO ───────────────────────────────────── */
.chi-siamo {
  position: relative;
  padding: 10rem 0;
  background: var(--stone);
  overflow: hidden;
}
.chi-siamo-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 25vw;
  font-weight: 300;
  color: rgba(255,255,255,0.03); /* Lighter on stone bg */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.chi-siamo .container {
  position: relative;
  z-index: 1;
}
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
@media (max-width: 900px) {
  .chi-siamo-grid { grid-template-columns: 1fr; gap: 4rem; }
  .chi-siamo-text { order: -1; }
}

/* Frame immagine */
.image-frame.image-frame--minimal {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.image-frame.image-frame--minimal::after { display: none; }
.chi-siamo-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: translateZ(0); /* Hardware acceleration without continuous will-change tax */
  transition: transform 0.7s var(--ease);
}
.image-frame:hover .chi-siamo-photo { transform: scale(1.04); }

/* Badge Puglia Made */
.chi-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(26,26,24,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(196,146,74,0.4);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.chi-badge span {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
}
.chi-siamo-img-wrap { position: relative; }

/* Testo */
.section-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-tag--light { color: var(--gold-lt); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 2rem;
}
.section-title em { font-style: italic; color: var(--gold); }

.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
  max-width: 540px;
  margin: 0.75rem auto 0;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.feat-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2rem; }
.feat-item {
  display: flex; align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark-mid);
}
.feat-dot { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ── 10.1 I FONDATORI ────────────────────────────────────────── */
.fondatori {
  padding: 10rem 0;
  background: var(--stone);
}
.fondatori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .fondatori-grid { grid-template-columns: 1fr; gap: 4rem; }
}

.fondatore-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}
.fondatore-img-wrap {
  width: 100%;
  height: 500px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  border-radius: 4px;
}
.fondatore-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}
.fondatore-img--boga {
  object-position: center top;
  transform: scale(1.15) translate(-2%, -2%); /* Crops bottom right star */
}
.fondatore-img--angelo {
  object-position: center 25%;
  transform: scale(1.15) translate(-2%, -2%); /* Crops bottom right star */
}
.fondatore-card:hover .fondatore-img--boga,
.fondatore-card:hover .fondatore-img--angelo {
  transform: scale(1.18) translate(-2%, -2%);
}
.fondatore-info {
  padding: 0;
}
.fondatore-name {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.fondatore-role {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.fondatore-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
}

/* ── 10.2 IL BRAND (Minimal Restyle) ─────────────────────────── */
.brand-logo {
  padding: 12rem 0;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.brand-minimal-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 6rem;
  align-items: center;
  text-align: left;
}

@media (max-width: 900px) {
  .brand-minimal-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .brand-video-container { margin: 0 auto; }
}

.brand-text-side {
  width: 100%;
}

.text-highlight-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.text-highlight-link strong {
  color: var(--gold);
  border-bottom: 2px solid rgba(196,146,74,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.text-highlight-link:hover strong {
  border-color: var(--gold);
}

.brand-header {
  margin-bottom: 2rem;
}

.brand-body-wrap {
  max-width: 100%;
  margin-bottom: 0;
}

.brand-text-content .section-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.brand-text-content strong {
  color: var(--gold);
  font-weight: 400;
}

.brand-video-container {
  width: 100%;
  max-width: 320px; /* Riduzione drastica richiesta */
  margin: 0 auto;
}

.brand-video-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  line-height: 0;
  aspect-ratio: 1 / 1; /* Forza il formato quadrato */
}

.brand-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Riempie il quadrato ritagliando l'eccesso */
}

.brand-video-overlay-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 4px;
}

/* ── 11. TICKER ──────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--dark);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

.t-item {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}
.t-sep { color: var(--gold); font-size: 0.6rem; opacity: 0.6; }

/* ── 12. SERVIZI ─────────────────────────────────────────────── */
.servizi {
  padding: 10rem 0;
  background: var(--stone);
}
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
@media (max-width: 1024px) { .servizi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .servizi-grid { grid-template-columns: 1fr; } }

.servizio-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: opacity 0.35s var(--ease);
}
.servizio-card:hover { box-shadow: none; opacity: 0.85; }

/* Immagine in cima alla card */
.card-img-wrap {
  height: 480px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.servizio-card:hover .card-img { transform: scale(1.04); }

/* Corpo card */
.card-body { padding: 0; }
.card-icon { display: none; }

.card-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1rem;
}
.card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 1.25rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196,146,74,0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* ── 12.5 EVENTI ─────────────────────────────────────────────── */
.eventi {
  padding: 10rem 0;
  background: var(--dark);
  color: var(--white);
}
.eventi .section-title { color: var(--white); }

.main-event {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}
@media (max-width: 900px) {
  .main-event { grid-template-columns: 1fr; }
}
.main-event-poster img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.main-event-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-track {
  display: inline-flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
}
.carousel-item {
  width: 320px;
  height: 450px;
  object-fit: cover;
  border-radius: 4px;
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.carousel-item:hover { transform: scale(1.02); }

.carousel-hint {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  text-align: right;
}

.altri-eventi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 768px) {
  .altri-eventi { grid-template-columns: 1fr; gap: 2rem; }
}
.evento-min-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease);
}
.evento-min-card:hover { transform: translateY(-10px); }
.evento-min-card img { width: 100%; display: block; }

/* ── 13. COCKTAIL SHOWCASE (Apple Style Scroll) ──────────────── */
/* Sezione con sfondo bianco puro, ispirata all'estetica prodotto Apple */
.cocktail-showcase {
  background: #ffffff;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

/* Intestazione centrata con tipografia scura su bianco */
.showcase-header {
  text-align: center;
  padding: 0 2rem 3rem;
}
.showcase-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.showcase-subtitle {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
/* Icona freccia scorrevole dopo il testo */
.showcase-subtitle::after {
  content: '→';
  display: inline-block;
  animation: arrowSlide 1.5s ease-in-out infinite;
}
@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.5; }
}

/* Contenitore che controlla l'area visibile dello scroll */
.showcase-track-container {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 3rem 10vw 4rem;
  cursor: grab;
}
/* Nasconde la scrollbar nativa per un look pulito stile Apple */
.showcase-track-container::-webkit-scrollbar { display: none; }
.showcase-track-container { -ms-overflow-style: none; scrollbar-width: none; }
.showcase-track-container:active { cursor: grabbing; }

/* Il "nastro" orizzontale che contiene le card */
.showcase-track {
  display: flex;
  gap: 6vw;
  width: max-content;
  align-items: center;
}

/* Ogni singolo elemento del carousel */
.showcase-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55vw;
  max-width: 500px;
  min-width: 280px;
}

/* Immagini PNG dei cocktail: effetto sticker flottante */
.cocktail-sticker {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Ombra morbida che simula profondità e stacca dal bianco, come uno sticker */
  filter: drop-shadow(0px 25px 50px rgba(0, 0, 0, 0.18)) drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.cocktail-sticker:hover {
  transform: scale(1.04) translateY(-8px);
  filter: drop-shadow(0px 40px 70px rgba(0, 0, 0, 0.22)) drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.12));
}

/* Wrapper del logo: cerchio bianco con ombra, come un badge */
.logo-sticker-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-sticker-wrapper:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow: 0 35px 80px rgba(0,0,0,0.15), 0 12px 30px rgba(0,0,0,0.1);
}
.logo-sticker {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .cocktail-showcase { padding: 4rem 0 2rem; }
  .showcase-item { width: 75vw; }
  .logo-sticker-wrapper { width: 160px; height: 160px; }
}

/* ── 13.5 PARTNERS ────────────────────────────────────────────── */
/* Sezione loghi partner visualizzati come "sticker" */
.partners-section {
  background: var(--dark);
  padding: 6rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}
.partner-sticker {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}
.partner-sticker:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}
.partner-sticker img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .partners-grid { gap: 1.5rem; }
  .partner-sticker { width: 120px; height: 120px; padding: 0.75rem; }
}

/* ── 14. GALLERIA ────────────────────────────────────────────── */
.galleria {
  padding: 7rem 0;
  background: var(--stone);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
}
.gallery-item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 6 / 9;  grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 6 / 9; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2 / 3; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .gallery-item:nth-child(2) { grid-column: auto; grid-row: auto; }
  .gallery-item:nth-child(3) { grid-column: auto; grid-row: auto; }
  .gallery-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .gallery-item:nth-child(5) { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(26,26,24,0.75), transparent);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.75);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ── 15. PREVENTIVO E FORM ────────────────────────────────────── */
.contatti {
  position: relative;
  padding: 9rem 0;
  overflow: hidden;
}
.contatti-bg { position: absolute; inset: 0; }
.contatti-bg-img { width: 100%; height: 100%; object-fit: cover; }
.contatti-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,24,0.88);
}
.contatti-inner { position: relative; z-index: 2; text-align: center; }
.contatti-content { max-width: 500px; margin: 0 auto; }

.contatti-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 3rem;
}
.contatti-title em { color: var(--gold); font-style: italic; }

.wa-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  background: rgba(255,255,255,0.03);
  padding: 2.5rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
}
.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  resize: none;
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.02);
}
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.privacy-group {
  margin-top: 0.5rem;
}
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.privacy-label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.privacy-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.privacy-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-form .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  height: 54px;
}

@media (max-width: 500px) {
  .wa-form { padding: 1.5rem; }
}

/* ── 16. FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 4rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-logo { margin: 0 auto 1.5rem; } /* Logo centrato nel footer su mobile */
  .footer-links { flex-direction: column; align-items: center; }
  .footer-wa { display: flex; justify-content: center; }
}

.footer-logo { height: 52px; width: auto; border-radius: 4px; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}
.footer-location {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.footer-heading {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.footer-link:hover { color: var(--gold); }
.footer-link:hover::after { width: 100%; }

/* === PULSANTE SOCIAL FOOTER (Es. Instagram) === */
/* Allinea l'icona e il testo, e aggiunge un hover color oro */
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-wa-btn:hover { color: var(--gold); }
.footer-wa-btn svg { width: 22px; height: 22px; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 2rem;
  text-align: center;
}
.footer-copy p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.04em;
}

/* ── 17. WHATSAPP FAB ────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 600;
  width: 45px; height: 45px;
  background: var(--dark);
  border: 1px solid rgba(196,146,74,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.wa-fab:hover {
  transform: translateY(-5px);
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.wa-pulse { display: none; }

@media (max-width: 768px) {
  .wa-fab { bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; }
}

/* ── 18. ANIMAZIONI GSAP – stati iniziali gestiti dal JS ─────── */
[data-gsap] { will-change: opacity, transform; }

/* ── 19. ACCESSIBILITÀ + UTIL ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--gold); color: var(--dark); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

@media (pointer: coarse) {
  body { cursor: auto; }
}

/* Mostra hamburger su mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Riduzione animazioni per utenti che lo preferiscono */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 20. PRIVACY MODAL (Glassmorphism) ────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}
.modal-container {
  position: relative;
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  background: rgba(20,20,18,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 4rem 3rem;
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: all 0.5s var(--ease);
  color: var(--white);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.modal.open .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 10001;
}
.modal-close:hover { 
  background: var(--gold); 
  border-color: var(--gold);
  color: var(--dark);
  transform: rotate(90deg);
}

/* Assicura che il cursore custom sia sopra la modale */
#curDot, #curRing {
  z-index: 10002 !important;
}

.privacy-policy-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.privacy-policy-text h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2rem 0 1rem;
  color: var(--white);
}
.privacy-policy-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.privacy-policy-text strong {
  color: var(--white);
}

@media (max-width: 600px) {
  .modal-container { padding: 2rem 1.5rem; }
  .privacy-policy-text h2 { font-size: 1.5rem; }
}

/* ── 21. FORM SUCCESS MESSAGE ────────────────────────────── */
.form-success-msg {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  animation: fadeInMsg 0.5s var(--ease);
  text-align: left;
}
.form-success-msg p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--white);
  margin: 0 !important;
}
.form-success-msg strong { color: var(--gold); display: block; margin-bottom: 0.25rem; }
.form-success-msg em { font-size: 0.75rem; opacity: 0.6; font-style: italic; }

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
