/* ==========================================================================
   Gelateria Spaziale · Cosmic Theme Stylesheet
   Reconstruction 100% Vanilla CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root, [data-theme="dark"] {
  --background: 250 40% 4%;
  --foreground: 40 30% 96%;
  --card: 250 35% 8%;
  --card-foreground: 40 30% 96%;
  --popover: 250 35% 8%;
  --popover-foreground: 40 30% 96%;
  --primary: 43 74% 55%;
  --primary-foreground: 250 40% 4%;
  --secondary: 250 25% 12%;
  --secondary-foreground: 40 30% 96%;
  --muted: 250 20% 14%;
  --muted-foreground: 240 10% 72%;
  --accent: 270 60% 60%;
  --accent-foreground: 40 30% 96%;
  --border: 250 25% 18%;
  --input: 250 25% 18%;
  --ring: 43 74% 55%;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --nebula-1: rgba(122, 31, 162, 0.38);
  --nebula-2: rgba(91, 31, 160, 0.34);
  --nebula-3: rgba(212, 175, 55, 0.14);
  --star: 255 255 255;
  --star-2: 212 175 55;

  --header-bg: rgba(7, 5, 16, 0.75);
  --glass-border: rgba(212, 175, 55, 0.2);
}

[data-theme="light"] {
  --background: 40 30% 97%;
  --foreground: 250 40% 8%;
  --card: 0 0% 100%;
  --card-foreground: 250 40% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 250 40% 8%;
  --primary: 43 74% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 20% 90%;
  --secondary-foreground: 250 40% 8%;
  --muted: 40 20% 92%;
  --muted-foreground: 240 10% 40%;
  --accent: 270 50% 50%;
  --accent-foreground: 0 0% 100%;
  --border: 40 20% 85%;
  --input: 40 20% 85%;
  --ring: 43 74% 45%;
  --gold: #C09A28;
  --gold-glow: rgba(192, 154, 40, 0.25);

  --nebula-1: rgba(186, 104, 200, 0.15);
  --nebula-2: rgba(149, 117, 205, 0.12);
  --nebula-3: rgba(212, 175, 55, 0.12);
  --star: 100 100 120;
  --star-2: 180 140 40;

  --header-bg: rgba(250, 247, 242, 0.85);
  --glass-border: rgba(192, 154, 40, 0.3);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

.font-serif {
  font-family: var(--font-heading);
}

.text-gold {
  color: var(--gold) !important;
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  display: block;
}

.section-title {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: hsl(var(--foreground));
  font-weight: 400;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Cosmic Background & Starfields
   ========================================================================== */

.cosmic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -10;
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgb(var(--star)), transparent 100%),
    radial-gradient(1px 1px at 130px 80px, rgb(var(--star)), transparent 100%),
    radial-gradient(1px 1px at 200px 150px, rgb(var(--star) / 0.8), transparent 100%),
    radial-gradient(1.8px 1.8px at 300px 220px, rgb(var(--star)), transparent 100%),
    radial-gradient(1.2px 1.2px at 400px 90px, rgb(var(--star) / 0.7), transparent 100%),
    radial-gradient(1px 1px at 500px 300px, rgb(var(--star)), transparent 100%),
    radial-gradient(1.5px 1.5px at 80px 280px, rgb(var(--star) / 0.9), transparent 100%),
    radial-gradient(1px 1px at 380px 180px, rgb(var(--star) / 0.85), transparent 100%);
  background-repeat: repeat;
  background-size: 550px 340px;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.stars2 {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(1.2px 1.2px at 60px 120px, rgb(var(--star-2) / 0.9), transparent 100%),
    radial-gradient(1px 1px at 250px 200px, rgb(var(--star) / 0.75), transparent 100%),
    radial-gradient(1.8px 1.8px at 360px 40px, rgb(var(--star-2)), transparent 100%),
    radial-gradient(1.2px 1.2px at 470px 260px, rgb(var(--star-2) / 0.85), transparent 100%),
    radial-gradient(1px 1px at 170px 20px, rgb(var(--star) / 0.8), transparent 100%),
    radial-gradient(1.5px 1.5px at 520px 140px, rgb(var(--star-2) / 0.9), transparent 100%);
  background-repeat: repeat;
  background-size: 480px 300px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.nebula-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.nebula-1 {
  top: -10rem;
  left: -8rem;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, var(--nebula-1), transparent 65%);
}

.nebula-2 {
  top: 35%;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, var(--nebula-2), transparent 65%);
  animation-delay: 2.5s;
}

.nebula-3 {
  bottom: 5rem;
  left: 20%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, var(--nebula-3), transparent 70%);
  animation-delay: 5s;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: translateY(0px); }
  50% { opacity: 0.85; }
  100% { opacity: 0.45; transform: translateY(-4px); }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==========================================================================
   Preloader Cosmique (1:1 Exact Match)
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1A0B2E;
  transition: opacity 1s cubic-bezier(0.7, 0, 0.84, 0), 
              transform 1s cubic-bezier(0.7, 0, 0.84, 0), 
              filter 1s cubic-bezier(0.7, 0, 0.84, 0),
              visibility 1s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  filter: blur(12px);
  pointer-events: none;
}

.preloader-overlay-black {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.preloader-overlay-radial-1 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(122, 31, 162, 0.45), transparent 60%);
  z-index: 3;
}

.preloader-overlay-radial-2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(91, 31, 160, 0.3), transparent 55%);
  z-index: 4;
}

.preloader-stars-1 {
  position: absolute;
  inset: 0;
  opacity: 0.4 !important;
  z-index: 5;
}

.preloader-stars-2 {
  position: absolute;
  inset: 0;
  opacity: 0.5 !important;
  z-index: 6;
}

.preloader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.preloader-avatar-container {
  position: relative;
  animation: cosmicFloat 4s ease-in-out infinite;
}

.preloader-glow-halo {
  position: absolute;
  inset: -2.5rem;
  border-radius: 9999px;
  background-color: rgba(212, 175, 55, 0.2);
  filter: blur(48px);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.preloader-avatar-large {
  position: relative;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
}

@media (min-width: 640px) {
  .preloader-avatar-large {
    width: 18rem;
    height: 18rem;
  }
}

.preloader-rotating-sparkle {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  color: #D4AF37;
  animation: spinSparkle 8s linear infinite;
}

.preloader-main-title {
  position: relative;
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  letter-spacing: 0.18em;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

.preloader-main-title span {
  color: #D4AF37;
}

.preloader-main-sub {
  position: relative;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.6);
}

.preloader-loading-box {
  position: relative;
  margin-top: 3rem;
  width: 18rem;
  max-width: 80vw;
}

@media (min-width: 640px) {
  .preloader-loading-box {
    width: 24rem;
  }
}

.preloader-loading-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #ffffff;
}

.preloader-loading-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #D4AF37;
  font-weight: 600;
}

.preloader-loading-percent {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (min-width: 640px) {
  .preloader-loading-percent {
    font-size: 2.25rem;
  }
}

.preloader-bar-track {
  margin-top: 0.75rem;
  height: 4px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
}

.preloader-bar-gradient {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, #7A1FA2, #D4AF37, #FFB74D);
  width: 0%;
}

.preloader-loading-subtext {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes cosmicFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.92); opacity: 0.35; }
  100% { transform: scale(1.18); opacity: 0.85; }
}

@keyframes spinSparkle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset-x: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform 0.3s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #fff;
}

[data-theme="light"] .site-header.scrolled .brand-logo-text {
  color: hsl(var(--foreground));
}

.brand-logo-text span {
  color: var(--gold);
}

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

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease, transform 0.25s ease;
}

[data-theme="light"] .site-header.scrolled .nav-link {
  color: hsl(var(--foreground));
}

.nav-link:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

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

/* Language selector */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 2px;
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.25s ease;
}

.lang-btn.active {
  background-color: var(--gold);
  color: #000;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Theme toggle */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: rotate(15deg);
}

/* Mobile burger button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .site-header.scrolled .mobile-menu-btn {
  color: hsl(var(--foreground));
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background-color: hsl(var(--card));
  z-index: 100;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid hsl(var(--border));
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.75rem;
}

/* ==========================================================================
   Hero Section (#top)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #070510;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #070510 0%, transparent 40%, rgba(7, 5, 16, 0.4) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 25px var(--gold-glow);
}

.hero-badge {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
}

.hero-title {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  line-height: 0.98;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 620px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.hero-cta-group {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--gold);
  color: #000;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 25px var(--gold-glow);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.55);
  background-color: #e5be42;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   Philosophy Section (#filosofia)
   ========================================================================== */

.philosophy-section {
  position: relative;
  padding: 7rem 0;
  text-align: center;
}

.philosophy-header {
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-grid {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.video-card {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.video-card:hover video {
  transform: scale(1.06);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 2;
}

.video-card-content {
  position: relative;
  z-index: 3;
  padding: 3rem;
  color: #fff;
}

.video-card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 400;
}

.video-card-body {
  margin-top: 1.25rem;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Flavors Nebula Section (#gusti)
   ========================================================================== */

.flavors-section {
  position: relative;
  padding: 7rem 0;
}

.flavors-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 3.5rem;
}

.flavors-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-end;
}

.flavors-intro-desc {
  font-size: 1.15rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.flavors-showcase {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.flavor-card {
  position: relative;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.flavor-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--gold-glow);
}

.flavor-media-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.flavor-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.flavor-card:hover .flavor-media-wrapper video {
  transform: scale(1.05);
}

.flavor-tags {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.flavor-tag {
  background: rgba(7, 5, 16, 0.8);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

.flavor-info {
  padding: 2.25rem;
}

.flavor-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.flavor-short {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.5;
}

.flavor-long {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.flavors-footer-note {
  margin-top: 3.5rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  font-size: 0.95rem;
  color: var(--gold);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Gallery Section (#galleria)
   ========================================================================== */

.gallery-section {
  position: relative;
  padding: 7rem 0;
}

.gallery-header {
  margin-bottom: 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all 0.4s ease;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.gallery-item video, .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-item:hover video, .gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.gallery-item-caption {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

/* ==========================================================================
   Reviews Section (#recensioni)
   ========================================================================== */

.reviews-section {
  position: relative;
  padding: 7rem 0;
}

.reviews-header {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reviews-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stars-rating-gold {
  display: flex;
  gap: 0.25rem;
  color: var(--gold);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid hsl(var(--border));
}

.review-card {
  padding: 3rem 2.25rem;
  border-right: 1px solid hsl(var(--border));
}

.review-card:last-child {
  border-right: none;
}

.review-quote {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  font-style: italic;
}

.review-author {
  margin-top: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Mission Control / Visit Section (#visitaci)
   ========================================================================== */

.visit-section {
  position: relative;
  padding: 7rem 0;
}

.visit-card-container {
  background: radial-gradient(circle at top right, rgba(122, 31, 162, 0.25), transparent 60%),
              radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.15), transparent 60%),
              hsl(var(--card));
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 4.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.visit-info-title {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.1;
  font-weight: 400;
}

.visit-details-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.visit-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.visit-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visit-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

.visit-detail-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-top: 0.2rem;
}

/* Weather live ticker box */
.weather-ticker-box {
  background: rgba(7, 5, 16, 0.7);
  border: 1px solid var(--gold);
  border-radius: 1.25rem;
  padding: 2.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 0 30px var(--gold-glow);
}

.weather-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.weather-dot-pulsing {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.weather-message {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.45;
  color: #fff;
}

.weather-city-badge {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.weather-cta-map {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

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

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #050509;
  color: #fff;
  padding: 5.5rem 0 2.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.footer-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.footer-hero-row {
  margin-top: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-huge-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-weight: 400;
  max-width: 800px;
}

.footer-huge-title em {
  font-style: italic;
  color: var(--gold);
}

.footer-bottom-bar {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-social-links a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .video-card {
    min-height: 550px;
  }

  .flavors-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flavors-showcase {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    divide-x: 0;
  }

  .review-card {
    border-right: none;
    border-bottom: 1px solid hsl(var(--border));
    padding: 2.5rem 0;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .lang-switcher .lang-btn {
    padding: 0.2rem 0.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .video-card-content {
    padding: 2rem 1.5rem;
  }

  .visit-card-container {
    padding: 2.5rem 1.5rem;
    border-radius: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .footer-huge-title {
    font-size: 2.75rem;
  }
}
