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

/* ============================
   GOCCIA D'ORO AL CLICK
   ============================ */
.gold-drop {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 9997;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.gold-drop .drop-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  /* Corpo trasparente: lo sfondo si vede attraverso. Solo un alone luminoso
     concentrato al centro + un sottile bordo dorato. */
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 247, 224, 0.55) 0%,
    rgba(240, 214, 139, 0.25) 35%,
    rgba(232, 200, 120, 0.08) 65%,
    rgba(168, 116, 37, 0) 100%
  );
  border: 1px solid rgba(255, 242, 208, 0.7);
  box-shadow:
    0 0 4px rgba(255, 242, 208, 0.85),
    0 0 14px rgba(232, 200, 120, 0.55),
    0 0 28px rgba(232, 200, 120, 0.3),
    inset 0 0 4px rgba(255, 242, 208, 0.35);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: dropCore 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.gold-drop .drop-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(232, 200, 120, 0.95);
  box-shadow:
    0 0 8px rgba(232, 200, 120, 0.55),
    inset 0 0 6px rgba(255, 242, 208, 0.4);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: dropRipple 0.95s ease-out forwards;
}

.gold-drop .drop-ripple.delay {
  animation-delay: 0.18s;
  animation-duration: 1.05s;
  border-color: rgba(255, 242, 208, 0.8);
}

@keyframes dropCore {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
  55%  { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
}

@keyframes dropRipple {
  0%   { opacity: 0.95; transform: translate(-50%, -50%) scale(0);   border-width: 2.5px; }
  20%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(5.5); border-width: 0.5px; }
}

/* ============================
   SCIA CURSORE: chicchi di caffè
   ============================ */
.coffee-bean {
  position: fixed;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><defs><radialGradient id='tr' gradientUnits='userSpaceOnUse' cx='16' cy='8' r='5.5'><stop offset='0' stop-color='%23000' stop-opacity='0.2'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></radialGradient><radialGradient id='sp' gradientUnits='userSpaceOnUse' cx='11' cy='13' r='5'><stop offset='0' stop-color='%23ffffff' stop-opacity='1'/><stop offset='0.5' stop-color='%23ffffff' stop-opacity='0.5'/><stop offset='1' stop-color='%23ffffff' stop-opacity='0'/></radialGradient><radialGradient id='ca' gradientUnits='userSpaceOnUse' cx='16' cy='22' r='5'><stop offset='0' stop-color='%23fff9d0' stop-opacity='0.85'/><stop offset='0.6' stop-color='%23fff9d0' stop-opacity='0.3'/><stop offset='1' stop-color='%23fff9d0' stop-opacity='0'/></radialGradient></defs><ellipse cx='16.3' cy='25.4' rx='6.5' ry='1.5' fill='%23000' opacity='0.18'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23fff8d8' stroke-width='0.75' stroke-opacity='0.9'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23000' stroke-width='0.3' stroke-opacity='0.4'/><ellipse cx='16' cy='8' rx='5' ry='2.5' fill='url(%23tr)'/><ellipse cx='16' cy='22' rx='5' ry='2.8' fill='url(%23ca)'/><ellipse cx='11.5' cy='14' rx='3' ry='4.4' fill='url(%23sp)'/><ellipse cx='10.5' cy='12' rx='1.3' ry='2.1' fill='%23ffffff' opacity='0.95'/><path d='M10 23 Q16 25.5 22 23' fill='none' stroke='%233a2810' stroke-width='0.35' opacity='0.45'/><path d='M14 4.2 Q16 3 18 4.2' fill='none' stroke='%23fffbe5' stroke-width='0.5' opacity='0.75'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1);
  animation: beanTrail 900ms ease-out forwards;
  will-change: opacity, transform;
}

@keyframes beanTrail {
  0%   {
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.4);
  }
  40%  {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(2.1);
  }
}

/* ============================
   CURSORE CUSTOM: goccia d'oro
   - corpo a forma di goccia con punta in alto
   - gradiente radiale oro lucido
   - highlight tipo riflesso su vetro/metallo
   ============================ */
/* Goccia di champagne TRASPARENTE (vetro liquido):
   - corpo quasi invisibile, solo lieve tinta dorata
   - bordo sottile per definire la silhouette
   - caustica al fondo (luce concentrata per rifrazione)
   - ombra interna in alto (la luce filtra meno nella parte superiore)
   - speculare ampio + spot bianco + rim light sulla punta */
/* Goccia COMPLETAMENTE TRASPARENTE (vetro/acqua):
   - nessun riempimento del corpo: lo sfondo si vede chiaramente
   - silhouette definita da doppio contorno (chiaro + scuro) per leggibilità su qualsiasi sfondo
   - speculare bianco + caustica al fondo + ombra interna in cima
   - sottile ombra portata sotto per dare "peso" */
html, body, * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='18' viewBox='0 0 32 32'><defs><radialGradient id='tr' gradientUnits='userSpaceOnUse' cx='16' cy='8' r='5.5'><stop offset='0' stop-color='%23000' stop-opacity='0.2'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></radialGradient><radialGradient id='sp' gradientUnits='userSpaceOnUse' cx='11' cy='13' r='5'><stop offset='0' stop-color='%23ffffff' stop-opacity='1'/><stop offset='0.5' stop-color='%23ffffff' stop-opacity='0.5'/><stop offset='1' stop-color='%23ffffff' stop-opacity='0'/></radialGradient><radialGradient id='ca' gradientUnits='userSpaceOnUse' cx='16' cy='22' r='5'><stop offset='0' stop-color='%23fff9d0' stop-opacity='0.85'/><stop offset='0.6' stop-color='%23fff9d0' stop-opacity='0.3'/><stop offset='1' stop-color='%23fff9d0' stop-opacity='0'/></radialGradient></defs><ellipse cx='16.3' cy='25.4' rx='6.5' ry='1.5' fill='%23000' opacity='0.18'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23fff8d8' stroke-width='0.75' stroke-opacity='0.9'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23000' stroke-width='0.3' stroke-opacity='0.4'/><ellipse cx='16' cy='8' rx='5' ry='2.5' fill='url(%23tr)'/><ellipse cx='16' cy='22' rx='5' ry='2.8' fill='url(%23ca)'/><ellipse cx='11.5' cy='14' rx='3' ry='4.4' fill='url(%23sp)'/><ellipse cx='10.5' cy='12' rx='1.3' ry='2.1' fill='%23ffffff' opacity='0.95'/><path d='M10 23 Q16 25.5 22 23' fill='none' stroke='%233a2810' stroke-width='0.35' opacity='0.45'/><path d='M14 4.2 Q16 3 18 4.2' fill='none' stroke='%23fffbe5' stroke-width='0.5' opacity='0.75'/></svg>") 7 2, auto;
}

/* Versione "pointer" più luminosa */
a, button, .menu-toggle, .btn-menu {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 32 32'><defs><radialGradient id='tr' gradientUnits='userSpaceOnUse' cx='16' cy='8' r='5.5'><stop offset='0' stop-color='%23000' stop-opacity='0.22'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></radialGradient><radialGradient id='sp' gradientUnits='userSpaceOnUse' cx='11' cy='13' r='5.5'><stop offset='0' stop-color='%23ffffff' stop-opacity='1'/><stop offset='0.5' stop-color='%23ffffff' stop-opacity='0.6'/><stop offset='1' stop-color='%23ffffff' stop-opacity='0'/></radialGradient><radialGradient id='ca' gradientUnits='userSpaceOnUse' cx='16' cy='22' r='5.5'><stop offset='0' stop-color='%23fffadd' stop-opacity='0.95'/><stop offset='0.6' stop-color='%23fffadd' stop-opacity='0.35'/><stop offset='1' stop-color='%23fffadd' stop-opacity='0'/></radialGradient></defs><ellipse cx='16.3' cy='25.4' rx='7' ry='1.6' fill='%23000' opacity='0.2'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23fffae8' stroke-width='0.85' stroke-opacity='0.95'/><path d='M16 3 Q19 5 22 10.5 Q26 18.5 23 25 A7.5 7.5 0 0 1 9 25 Q6 18.5 10 10.5 Q13 5 16 3 Z' fill='none' stroke='%23000' stroke-width='0.35' stroke-opacity='0.45'/><ellipse cx='16' cy='8' rx='5.2' ry='2.6' fill='url(%23tr)'/><ellipse cx='16' cy='22' rx='5.2' ry='2.9' fill='url(%23ca)'/><ellipse cx='11.5' cy='14' rx='3.2' ry='4.6' fill='url(%23sp)'/><ellipse cx='10.5' cy='12' rx='1.4' ry='2.2' fill='%23ffffff' opacity='0.98'/><path d='M10 23 Q16 25.5 22 23' fill='none' stroke='%233a2810' stroke-width='0.4' opacity='0.5'/><path d='M14 4.2 Q16 3 18 4.2' fill='none' stroke='%23fffbe5' stroke-width='0.55' opacity='0.8'/></svg>") 9 2, pointer;
}

/* ============================
   INTRO OVERLAY
   ============================ */
.intro {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFade 4s ease-in-out forwards;
}

.intro-logo {
  width: min(95vw, 1050px);
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: logoReveal 4s ease-in-out forwards;
}

/* Logo: dissolvenza in entrata e uscita con leggero zoom */
@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.92); }
  25%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Overlay: resta visibile poi sfuma e si rimuove */
@keyframes introFade {
  0%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* Quando l'intro è finita, blocca i puntatori */
.intro.done {
  display: none;
}

/* Disabilita lo scroll durante l'intro */
body.intro-active {
  overflow: hidden;
}

html, body {
  background: #0a0a0a;
  color: #f5f1e6;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Titoli, logo, navigazione e pulsanti: Cinzel (non corsivo) */
h1, h2, h3,
.logo,
.topbar nav a,
.btn-menu,
.scroll-hint,
.menu-list li span:last-child {
  font-family: "Cinzel", "Times New Roman", serif;
  font-style: normal;
}

/* Overlay nero che copre il canvas mentre la galleria è in viewport */
.blackout-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

body.gallery-blackout .blackout-overlay {
  opacity: 1;
}

/* Canvas fissa che mostra i frame */
#scroll-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* gestisce barra browser su mobile */
  z-index: 0;
  object-fit: cover;
  /* Rendering image-quality hints: chiede al browser scaling di alta qualità */
  image-rendering: auto;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  /* Composite su GPU per scroll più fluido */
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
  /* Lo zoom-out di apertura è gestito in JS (Web Animations API)
     per evitare lo "snap" che il browser provoca a fine keyframe CSS. */
  transform: translate3d(0, 0, 0.0001px) scale(1.0001);
}

/* Overlay scuro globale per leggibilità */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.78) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(255, 242, 208, 0.55));
}

/* ============================
   DROPDOWN MENU (pulsante + lista a tendina)
   ============================ */
.menu-wrapper {
  position: relative;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: filter 0.3s ease;
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff2d0;
  transition: transform 0.35s ease, opacity 0.25s ease, box-shadow 0.3s ease;
  transform-origin: center;
}

.menu-toggle:hover .bar,
.menu-toggle.open .bar {
  box-shadow: 0 0 10px rgba(255, 242, 208, 0.6);
}

/* Le 3 linette diventano una X all'apertura */
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(240px, calc(100vw - 2rem));
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(232, 200, 120, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  padding: 0 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition:
    max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    padding 0.4s ease,
    opacity 0.3s ease,
    visibility 0.45s;
  z-index: 25;
}

.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  max-height: 400px;
  padding: 0.5rem 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #f5f1e6;
  text-decoration: none;
  font-family: "Cinzel", "Times New Roman", serif;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    background 0.25s,
    color 0.25s,
    text-shadow 0.25s,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.nav-dropdown.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Apparizione a cascata verticale: delay solo su opacity/transform */
.nav-dropdown.open a:nth-child(1) { transition-delay: 0s, 0s, 0s, 0.15s, 0.15s; }
.nav-dropdown.open a:nth-child(2) { transition-delay: 0s, 0s, 0s, 0.22s, 0.22s; }
.nav-dropdown.open a:nth-child(3) { transition-delay: 0s, 0s, 0s, 0.29s, 0.29s; }
.nav-dropdown.open a:nth-child(4) { transition-delay: 0s, 0s, 0s, 0.36s, 0.36s; }

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: #fff2d0;
  background: rgba(255, 242, 208, 0.08);
  text-shadow:
    0 0 4px rgba(255, 242, 208, 0.9),
    0 0 12px rgba(255, 220, 150, 0.7),
    0 0 24px rgba(232, 200, 120, 0.55),
    0 0 40px rgba(232, 200, 120, 0.35);
}

/* Sezioni a tutta altezza */
main {
  position: relative;
  z-index: 2;
}

.panel {
  min-height: 110vh;
  min-height: 110dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

/* Hero più corta per non far attendere troppo prima dei contenuti */
.panel.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Hero */
.hero-logo {
  width: min(70vw, 720px);
  height: auto;
  display: block;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.7));
}

.hero .tagline {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 3px;
  color: #f5f1e6;
  margin-bottom: 3rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.scroll-hint {
  margin-top: 2rem;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ============================
   FASCIA GALLERIA: scroll orizzontale legato allo scroll verticale
   Le immagini scorrono verso destra (track si muove verso sinistra)
   mentre l'utente scrolla giù lungo la sezione sticky.
   ============================ */
.strip-section {
  position: relative;
  width: 100%;
  z-index: 2;
  padding: 4rem 0;
}

.strip-sticky {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Padding verticale interno: dà spazio allo scale(1.07) dell'hover
     senza che il riquadro venga tranciato dal bordo del contenitore. */
  padding: 6vh 0;
  /* Nasconde la barra di scroll senza disabilitare lo scrolling */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / vecchio Edge */
}

.strip-sticky::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge */
  width: 0;
  height: 0;
}

.strip-track {
  display: flex;
  gap: 1.6rem;
  padding: 0 4vw;
  height: 48vh;
  align-items: center;
}

/* Forma scudo (Dom Pérignon) per le foto */
.strip-item {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1.2;
  /* Nessun riempimento: la riga di riquadri non forma più una "striscia" piena.
     Resta solo il bordo dorato che disegna la forma. Quando l'hover attiva
     l'overlay nero a schermo intero, i bordi restano visibili sopra. */
  background: transparent;
  border: 1px solid rgba(232, 200, 120, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 242, 208, 0.6);
  font-family: "Cinzel", "Times New Roman", serif;
  font-style: normal;
  letter-spacing: 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
  overflow: hidden;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.6));
  cursor: none;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 0.4s ease;
}

/* Dispari (1, 3, 5, ...) → rettangolari, angoli leggermente arrotondati */
.strip-item:nth-child(odd) {
  border-radius: 4px;
}

/* Pari (2, 4, 6, ...) → forma ad arco (semicirconferenza superiore, base piatta) */
.strip-item:nth-child(even) {
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
}

/* Nasconde anche il cursore custom (la goccia) sopra le foto */
.strip-item,
.strip-item * {
  cursor: none !important;
}

.strip-item:hover {
  transform: scale(1.07);
  filter:
    drop-shadow(0 14px 30px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 16px rgba(255, 242, 208, 0.4));
}

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

/* Etichetta interna placeholder (visibile finché non inserisci le foto) */
.strip-item span {
  padding: 0 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .strip-track {
    height: 42vh;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .strip-track {
    height: 36vh;
    gap: 1rem;
    padding: 0 1rem;
  }
  .strip-item {
    font-size: 0.75rem;
  }
}

/* Card di contenuto */
.card {
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(232, 200, 120, 0.3);
  padding: 3.5rem 4rem;
  max-width: 820px;
  width: 100%;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  will-change: transform, opacity;
}

/* Entrata con rimbalzo quando la card entra in viewport */
.card.in-view {
  animation: cardBounceIn 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardBounceIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stato a riposo dopo l'entrata: ora gli effetti hover possono lavorare */
.card.entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.card.entered:hover {
  transform: scale(1.03);
  border-color: rgba(255, 242, 208, 0.55);
  box-shadow:
    0 14px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(232, 200, 120, 0.18);
}

.card h2 {
  font-size: 2.8rem;
  color: #fff2d0;
  margin-bottom: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.card p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.card p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 200, 120, 0.35);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}

.card p a:hover,
.card p a:focus-visible {
  color: #fff2d0;
  border-bottom-color: #fff2d0;
  text-shadow:
    0 0 4px rgba(255, 242, 208, 0.85),
    0 0 14px rgba(232, 200, 120, 0.55);
}

/* ============================
   MAPPA
   ============================ */
.map-card {
  max-width: 920px;
  width: 100%;
}

.map-address {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: #d6cfbe;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(232, 200, 120, 0.35);
  border-radius: 3px;
  overflow: hidden;
  background: #1a1a1a;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.map-wrapper:hover .map-frame {
  transform: scale(1.03);
  filter: brightness(0.7);
  -webkit-filter: brightness(0.7);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.map-wrapper:hover .map-overlay {
  opacity: 1;
}

.map-overlay-text {
  padding: 0.8rem 1.6rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(232, 200, 120, 0.5);
  color: #fff2d0;
  font-family: "Cinzel", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.map-btn {
  margin-top: 1.5rem;
}

/* Pulsante "Scopri il nostro menu" — discreto a riposo, si illumina bianco panna all'hover */
.btn-menu {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.3rem 3.6rem;
  border: 2px solid #fff2d0;
  color: #fff2d0;
  background: transparent;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-menu:hover,
.btn-menu:focus-visible {
  background: #fff2d0;
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(255, 242, 208, 0.85),
    0 0 50px rgba(255, 242, 208, 0.5),
    0 0 90px rgba(255, 242, 208, 0.25);
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  padding: 1.8rem 2rem;
  background: rgba(0,0,0,0.85);
  color: rgba(245, 241, 230, 0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Bar finale del footer: bandiere centrate, social a destra */
.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-bar > .lang-switcher {
  grid-column: 2;
  justify-self: center;
}

.footer-bar > .social-links {
  grid-column: 3;
  justify-self: end;
}

footer > p {
  text-align: center;
}

.privacy-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.8rem;
  opacity: 0.7;
}

.privacy-disclaimer a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.privacy-disclaimer a:hover {
  opacity: 1;
  color: #fff2d0;
}

/* ============================
   LANGUAGE SWITCHER (bandiere)
   ============================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 242, 208, 0.15);
  border-radius: 3px;
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  line-height: 0;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: rgba(255, 242, 208, 0.45);
}

.lang-btn.active {
  opacity: 1;
  border-color: #fff2d0;
  box-shadow: 0 0 12px rgba(255, 242, 208, 0.4);
}

/* Bandiere come blocchi colorati 30x20 px */
.flag {
  display: inline-block;
  width: 30px;
  height: 20px;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  vertical-align: middle;
}

/* Italia: verde-bianco-rosso verticali */
.flag-it {
  display: flex;
  flex-direction: row;
}
.flag-it span {
  flex: 1;
  height: 100%;
}
.flag-it span:nth-child(1) { background: #008C45; }
.flag-it span:nth-child(2) { background: #F4F5F0; }
.flag-it span:nth-child(3) { background: #CD212A; }

/* UK (English): SVG inline */
.flag-en svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Spagna: rosso-giallo-rosso orizzontali (giallo doppia altezza) */
.flag-es {
  display: flex;
  flex-direction: column;
}
.flag-es span {
  width: 100%;
}
.flag-es span:nth-child(1) { flex: 1; background: #AA151B; }
.flag-es span:nth-child(2) { flex: 2; background: #F1BF00; }
.flag-es span:nth-child(3) { flex: 1; background: #AA151B; }

/* Germania: nero-rosso-oro orizzontali */
.flag-de {
  display: flex;
  flex-direction: column;
}
.flag-de span {
  flex: 1;
  width: 100%;
}
.flag-de span:nth-child(1) { background: #000000; }
.flag-de span:nth-child(2) { background: #DD0000; }
.flag-de span:nth-child(3) { background: #FFCE00; }

/* ============================
   SOCIAL LINKS (Instagram, Facebook) — bianco panna, nel footer
   ============================ */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff2d0;
  text-decoration: none;
  /* Stato iniziale per il rimbalzo */
  opacity: 0;
  transform: translateY(24px) scale(0.7);
  transition: filter 0.3s ease;
}

.social-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Entrata con rimbalzo quando entrano in viewport */
.social-links.in-view .social-btn {
  animation: socialPopIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.social-links.in-view .social-btn:nth-child(1) { animation-delay: 0.05s; }
.social-links.in-view .social-btn:nth-child(2) { animation-delay: 0.18s; }

@keyframes socialPopIn {
  to {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
}

/* Stato a riposo (animazione conclusa): hover funzionante */
.social-links.entered .social-btn {
  opacity: 0.9;
  transform: translateY(0) scale(1);
  animation: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.social-links.entered .social-btn:hover,
.social-links.entered .social-btn:focus-visible {
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 242, 208, 0.7));
}

@media (max-width: 600px) {
  /* Su mobile: layout impilato, tutto centrato */
  .footer-bar {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .footer-bar > .lang-switcher,
  .footer-bar > .social-links {
    grid-column: 1;
    justify-self: center;
  }
  .social-links {
    gap: 0.8rem;
  }
  .social-btn {
    width: 30px;
    height: 30px;
  }
  .social-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (hover: none) {
  .social-btn:hover {
    transform: none;
  }
}

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

/* Tablet */
@media (max-width: 900px) {
  .topbar {
    padding: 1rem 1.4rem;
  }
  .logo-img {
    height: 46px;
  }
  .panel {
    padding: 6rem 1.5rem 3rem;
  }
  .card {
    padding: 2rem 2rem;
  }
}

/* Smartphone */
@media (max-width: 600px) {
  .topbar {
    padding: 0.8rem 1rem;
  }
  .logo-img {
    height: 38px;
  }
  .hero-logo {
    width: 88vw;
    margin-bottom: 1rem;
  }

  /* Sezioni più corte su mobile per non rendere la pagina infinita */
  .panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 7rem 1.2rem 3rem;
  }
  .panel.hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero .tagline {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .scroll-hint {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .card {
    padding: 1.8rem 1.4rem;
    max-width: 100%;
  }
  .card h2 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }
  .card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn-menu {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
    letter-spacing: 3px;
    min-height: 52px; /* tocco confortevole + più grande */
  }

  /* Menu dropdown sotto le 3 linette ben dimensionato su mobile */
  .nav-dropdown {
    width: min(220px, calc(100vw - 1.5rem));
  }
  .nav-dropdown a {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Mappa: rapporto più "alto" per leggibilità su schermi stretti */
  .map-wrapper {
    aspect-ratio: 4 / 5;
  }
  .map-address {
    font-size: 1rem;
  }

  /* Bandiere: spaziatura più stretta */
  .lang-switcher {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .flag {
    width: 28px;
    height: 18px;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
  }

  /* Intro logo più contenuto su mobile */
  .intro-logo {
    width: 88vw;
  }

  /* Pulsante hamburger / menu-toggle leggermente più grande per il tocco */
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
}

/* Schermi molto piccoli (<= 380px) */
@media (max-width: 380px) {
  .panel {
    padding: 6.5rem 1rem 2.5rem;
  }
  .card {
    padding: 1.5rem 1.1rem;
  }
  .card h2 {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
  .btn-menu {
    font-size: 0.8rem;
    padding: 0.85rem 1.3rem;
  }
}

/* Smartphone in orizzontale (basso e largo) */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar {
    padding: 0.6rem 1rem;
  }
  .panel {
    padding: 4rem 1.5rem 2rem;
    min-height: auto;
  }
  .hero-logo {
    width: min(55vw, 360px);
    margin-bottom: 0.4rem;
  }
  .hero .tagline {
    margin-bottom: 1rem;
  }
  .scroll-hint {
    display: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .panel {
    min-height: 130vh;
    min-height: 130dvh;
  }
  .panel.hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .card {
    padding: 2.5rem 2.5rem;
  }
  .card h2 {
    font-size: 2.2rem;
  }
}

/* Disattiva effetti hover su touch (evita "stati appiccicati") */
@media (hover: none) {
  .btn-menu:hover {
    transform: none;
  }
  .card.entered:hover {
    transform: translateY(0) scale(1);
  }
  .lang-btn:hover {
    transform: none;
    transform: none;
  }
}

/* ============================
   EVENT MODAL BANNER
   ============================ */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.event-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.event-modal-content {
  position: relative;
  width: 90vw;
  max-width: 450px;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 200, 120, 0.3);
}
.event-modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.event-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 48px;
  height: 48px;
  background: #0a0a0a;
  border: 2px solid rgba(232, 200, 120, 0.8);
  color: rgba(232, 200, 120, 0.9);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s, color 0.2s, background 0.2s;
}
.event-modal-close:hover {
  transform: scale(1.1);
  background: rgba(232, 200, 120, 0.15);
  color: #fff7d6;
}
