/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Page Transition Animations
   ========================================================================== */

/* Page fade-in animation */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth page transitions */
body {
  animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page exit animation for navigation */
.page-transition-exit {
  animation: pageFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Full-screen language transition overlay */
.language-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  height: var(--vh);
  background: linear-gradient(135deg, #DAA520, #FFD700, #DAA520);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Non blocca click quando non attivo */
}

.language-transition-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Blocca click solo quando attivo */
}

.language-transition-content {
  text-align: center;
  color: #111;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  animation: languageTextPulse 0.6s ease-in-out;
}

.language-transition-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 200vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  transform: translate(-50%, -50%) scale(0);
  animation: languageBurst 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes languageTextPulse {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes languageBurst {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Language Switcher Styles - Fixed Top Right Position */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 2rem;
  padding: 0.25rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.language-switcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.language-switcher.switching {
  animation: switcherPulse 0.6s ease-in-out;
}

@keyframes switcherPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.language-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 2.5rem;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.language-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #DAA520, #FFD700);
  opacity: 0;
  transition: all 0.2s ease;
  border-radius: 1.5rem;
  transform: scale(0.8);
}

.language-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.language-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.language-btn:hover::before {
  opacity: 0.3;
}

.language-btn:hover::after {
  width: 100%;
  height: 100%;
}

.language-btn.active {
  background: linear-gradient(135deg, #DAA520, #FFD700);
  color: #111;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.5);
  text-shadow: none;
  transform: scale(1.05);
}

.language-btn.active::before {
  opacity: 1;
}

.language-btn.switching {
  animation: btnSwitch 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes btnSwitch {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(0.9) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.language-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.4);
}

/* Language switching animation for content */
[data-translate] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-translate].switching {
  animation: contentSwitch 0.6s ease-in-out;
}

@keyframes contentSwitch {
  0% { 
    opacity: 1; 
    transform: translateY(0); 
  }
  25% { 
    opacity: 0; 
    transform: translateY(-10px) scale(0.98); 
  }
  75% { 
    opacity: 0; 
    transform: translateY(5px) scale(1.02); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* Page transition effect for language change */
body.switching {
  animation: pageLanguageSwitch 0.8s ease-in-out;
}

@keyframes pageLanguageSwitch {
  0% { 
    filter: hue-rotate(0deg) brightness(1); 
  }
  50% { 
    filter: hue-rotate(10deg) brightness(1.05); 
  }
  100% { 
    filter: hue-rotate(0deg) brightness(1); 
  }
}

/* Loading indicator for language switch */
.language-switcher.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #FFD700;
  border-radius: 50%;
  animation: languageLoader 1s linear infinite;
}

@keyframes languageLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark theme adjustments for language switcher */
.site-header.scrolled .language-switcher {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.site-header.scrolled .language-btn {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled .language-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .language-btn.active {
  background: linear-gradient(135deg, #DAA520, #FFD700);
  color: #111;
  text-shadow: none;
}

/* Light theme fallback for better visibility */
@media (prefers-color-scheme: light) {
  .language-switcher {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .language-btn {
    color: #333;
    text-shadow: none;
  }
  
  .language-btn:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .language-btn.active {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #111;
  }
}

/* Mobile responsive adjustments for fixed position */
@media (max-width: 768px) {
  .language-switcher {
    top: 80px; /* Sotto la banda superiore del sito */
    right: 15px;
    gap: 0.2rem;
    padding: 0.2rem;
    z-index: 999; /* Lower z-index for mobile to not interfere with menu */
  }
  
  .language-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    min-width: 2.2rem;
  }
  
  /* Fix mobile menu z-index and backdrop */
  .mobile-menu-container {
    z-index: 9999;
  }
  
  .mobile-menu-backdrop {
    z-index: 1;
    background: rgba(0, 0, 0, 0.8); /* Darker backdrop for better blocking */
  }
  
  /* Prevent any interaction when menu is open on mobile */
  .mobile-menu-container.active ~ * {
    pointer-events: none;
  }
  
  /* But allow interaction with the menu itself */
  .mobile-menu-container.active,
  .mobile-menu-container.active * {
    pointer-events: auto;
  }
  
  /* Allow scrolling when menu is open on mobile - only block background interactions */
  body.mobile-menu-open {
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    top: 80px; /* Sotto la banda superiore del sito */
    right: 10px;
    gap: 0.15rem;
    padding: 0.15rem;
    z-index: 999; /* Lower z-index for mobile to not interfere with menu */
  }
  
  .language-btn {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    min-width: 2rem;
  }
  
  /* Fix mobile menu z-index and backdrop for small mobile */
  .mobile-menu-container {
    z-index: 9999;
  }
  
  .mobile-menu-backdrop {
    z-index: 1;
    background: rgba(0, 0, 0, 0.8); /* Darker backdrop for better blocking */
  }
  
  /* Prevent any interaction when menu is open on mobile */
  .mobile-menu-container.active ~ * {
    pointer-events: none;
  }
  
  /* But allow interaction with the menu itself */
  .mobile-menu-container.active,
  .mobile-menu-container.active * {
    pointer-events: auto;
  }
  
  /* Allow scrolling when menu is open on mobile - only block background interactions */
  body.mobile-menu-open {
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Reveal animations with stagger */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for multiple elements */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

/* Smooth link transitions */
a {
  transition: color 0.2s ease;
}

/* Enhanced hero section entrance */
.hero-stars {
  animation: heroEntrance 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navigation smooth transitions */
.site-header {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.3s ease;
}

/* Card entrance animations */
.card, .price-card, .menu-tile {
  animation: cardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Safe mobile scrolling defaults */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Handle popup open state - don't block scrolling on mobile */
body.popup-open {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}

/* Handle mobile menu open state - only prevent background interactions */
body.mobile-menu-open {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}

/* Fix viewport height issues on mobile */
@supports (height: 100dvh) {
  :root {
    --vh: 100dvh;
  }
}

@supports not (height: 100dvh) {
  :root {
    --vh: 100vh;
  }
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Service Popup Styles
   ========================================================================== */

/* Flip Card System */
.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 2 / 1.1; /* Let height be determined by width */
  min-height: 160px;      /* Ensure a minimum height */
  perspective: 1000px;
  cursor: pointer;
  margin: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.flip-card-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-back {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #333;
  transform: rotateY(180deg);
  padding: 1rem;
}

.flip-card:hover {
  transform: translateY(-2px) scale(1.02);
}

.flip-card:hover .flip-card-front {
  border-color: #DAA520;
  box-shadow: 0 10px 30px rgba(218,165,32,0.35);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.flip-card.flipped:hover {
  transform: translateY(-2px) scale(1.02);
}

.flip-card.flipped:hover .flip-card-back {
  box-shadow: 0 10px 30px rgba(218,165,32,0.35);
}

.flip-card-front h3 {
  margin: 1.2rem 0 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  font-family: 'Playfair Display', serif;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

/* Click hint text */
.flip-card-hint {
  font-size: 0.75rem;
  color: #666;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  opacity: 0.8;
  animation: hint-pulse 2s ease-in-out infinite;
  margin-top: 0.5rem;
  display: block;
}

@keyframes hint-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.flip-card-front .price-badge {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(218,165,32,0.4);
  display: inline-block;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-card-front .price-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(218,165,32,0.5);
}

.flip-card-back p {
  margin: 0 0 0.8rem 0;
  color: #333;
  line-height: 1.3;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

.flip-card-back .btn {
  background: #333;
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.flip-card-back .btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.flip-card-front.review-card, .flip-card-back.review-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.flip-card-back.review-card {
  transform: rotateY(180deg);
}

/* Center alignment for price-cards container */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
  justify-content: center;
  align-items: start;
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Contact actions centering */
.location-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

/* Location content centering */
.location-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Special centering for 2-card sections */
#mani-piedi-donna .price-cards {
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

#mani-piedi-donna .price-cards .flip-card {
  justify-self: center;
  max-width: 280px;
}

/* Section spacing fix */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section-title.center {
  text-align: center;
  margin-bottom: 1rem;
}

/* Container alignment for sections */
.section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Flip card centering */
.flip-card {
  background-color: transparent;
  width: 100%; /* Let the grid handle width */
  height: 160px; /* Increased height to prevent clipping */
  perspective: 1000px;
  cursor: pointer;
  margin: 0;
  overflow: visible; /* Changed to visible to prevent border clipping */
  justify-self: center;
}

/* Mobile responsive - remove specific flip-card width/height as grid handles it */
@media (max-width: 1200px) {
  .price-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 35px 15px;
  }
}

@media (max-width: 900px) {
  .price-cards {
    gap: 15px;
    padding: 30px 15px;
  }
}

/* Enhanced mobile page transitions */
@media (max-width: 768px) {
  /* Assicuro scrolling completo su mobile */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  
  main {
    overflow-y: auto !important;
    position: relative !important;
  }
  
  body {
    animation: mobilePageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
  }
  
  @keyframes mobilePageFadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .reveal {
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    transition: all 0.3s ease;
  }
  
  .nav-toggle:hover {
    background: rgba(218, 165, 32, 0.1);
  }
  
  .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-toggle .bar:nth-child(1) {
    transform: translateY(-8px);
  }
  
  .nav-toggle .bar:nth-child(2) {
    transform: translateY(0);
  }
  
  .nav-toggle .bar:nth-child(3) {
    transform: translateY(8px);
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(0);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
  }
  
  .mobile-menu-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: var(--vh);
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  
  .mobile-menu-close {
    display: none;
  }
  
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100dvh;
    height: var(--vh);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  
  .site-nav.active {
    right: 0;
  }
  
  .site-nav ul {
    list-style: none;
    margin: 0;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .site-nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  
  .site-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.2), transparent);
    transition: left 0.5s ease;
  }
  
  .site-nav a:hover::before {
    left: 100%;
  }
  
  .site-nav a:hover {
    background: rgba(218, 165, 32, 0.15);
    color: #DAA520;
    transform: translateX(4px);
  }
  
  .site-nav a.btn-primary {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #ffffff;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
    color: #1a1a1a;
    border: none;
    box-shadow: 0 6px 18px rgba(218,165,32,0.35);
    font-weight: 700;
  }
  
  .site-nav a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(218,165,32,0.5);
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%) !important;
  }
  
  /* Nascondi il menu desktop originale su mobile */
  .site-header .site-nav {
    display: none;
  }
}

/* Enhanced mobile responsiveness */
@media (max-width: 550px) {
  .price-cards {
    gap: 10px;
    padding: 20px 15px;
  }

  .flip-card {
    max-width: 90vw;
  }

  .section .container {
    padding: 0 15px;
  }

  .flip-card-front h3 {
    font-size: 1rem;
  }
  
  .flip-card-front .price-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .flip-card-back p {
    font-size: 0.7rem;
  }
  
  .flip-card-back .btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  /* Fix for small screens */
  .container {
    width: min(95%, var(--maxw));
  }
  
  .site-header {
    min-height: 50px;
  }
  
  .brand {
    font-size: 0.9rem;
  }
  
  .nav-toggle {
    width: 36px;
    height: 30px;
  }
}

/* Enhanced Price Cards */
.price-card.enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
}
.price-card.enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(218,165,32,0.3);
  border-color: #DAA520;
}

.price-card.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DAA520, #FFD700);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-card.enhanced:hover::before {
  opacity: 1;
}

.price-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  background: rgba(255, 255, 255, 0.8);
}

.price-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.price-card-header .price-badge {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(218,165,32,0.4);
  border: none;
}

.price-card-body {
  padding: 1.5rem;
}

.price-card-body p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.price-card-body .btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #333;
  border: none;
  box-shadow: 0 6px 20px rgba(218,165,32,0.5);
  transition: all 0.3s ease;
}

.price-card-body .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(218,165,32,0.7);
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
}

@media (max-width: 768px) {
  .price-card.enhanced {
    margin-bottom: 1rem;
  }
  
  .price-card-header {
    padding: 1.2rem 1.2rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .price-card-header h3 {
    font-size: 1.2rem;
  }
  
  .price-card-header .price-badge {
    align-self: flex-end;
  }
  
  .price-card-body {
    padding: 1.2rem;
  }
  
  .price-card-body p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
}

/* Elegant Service Popup */
.elegant-service-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-service-popup.active {
  opacity: 1;
  visibility: visible;
}

.elegant-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-popup-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.elegant-service-popup.active .elegant-popup-content {
  transform: scale(1) translateY(0);
}

.elegant-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elegant-popup-close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.elegant-popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.elegant-popup-title {
  font-size: 1.8rem;
  color: #333;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.elegant-popup-price {
  font-size: 2rem;
  color: #DAA520;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(218,165,32,0.4);
}

.elegant-popup-body {
  margin-bottom: 2rem;
}

.elegant-popup-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

.elegant-popup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.elegant-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.elegant-btn-primary {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  color: #333;
  box-shadow: 0 8px 25px rgba(218,165,32,0.5);
}

.elegant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(218,165,32,0.7);
}

.elegant-btn-secondary {
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
}

.elegant-btn-secondary:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
  color: #333;
}

@media (max-width: 768px) {
  .elegant-popup-content {
    margin: 1rem;
    padding: 1.5rem;
    width: calc(100% - 2rem);
  }
  
  .elegant-popup-title {
    font-size: 1.5rem;
  }
  
  .elegant-popup-price {
    font-size: 1.5rem;
  }
  
  .elegant-popup-actions {
    flex-direction: column;
  }
  
  .elegant-btn {
    width: 100%;
    text-align: center;
  }
}

.service-popup.active .service-popup-content {
  transform: scale(1) translateY(0);
}

.service-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.service-popup-close:hover {
  background: var(--bg-alt);
  color: var(--text);
  transform: rotate(90deg);
}

.service-popup-title {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
}

.service-popup-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.service-popup-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-popup-actions .btn {
  flex: 1;
  min-width: 120px;
}

.price-card {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.price-card:active {
  transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .service-popup-content {
    margin: 1rem;
    padding: 1.5rem;
    width: calc(100% - 2rem);
  }
  
  .service-popup-actions {
    flex-direction: column;
  }
  
  .service-popup-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   NUOVO MENU MOBILE SEPARATO - SOLO PER MOBILE
   ========================================================================== */

/* Container principale del nuovo menu mobile */
.mobile-menu-container {
  display: none; /* Nascondo quando non attivo */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  height: var(--vh);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-container.active {
  display: block; /* Mostra quando attivo */
  opacity: 1;
  visibility: visible;
}

/* Backdrop semi-trasparente */
.mobile-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.mobile-menu-container.active .mobile-menu-backdrop {
  opacity: 1;
}

/* Pannello del menu - circa metà schermo */
.mobile-menu-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 85%;
  max-width: 400px;
  max-height: 60vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100000;
}

.mobile-menu-container.active .mobile-menu-panel {
  transform: translate(-50%, -50%) scale(1);
}

/* Header del menu mobile */
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.mobile-menu-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pulsante di chiusura del nuovo menu */
.mobile-menu-close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.mobile-menu-close-btn span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-close-btn span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close-btn span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Navigazione del nuovo menu */
.mobile-menu-nav {
  padding: 1rem;
  max-height: calc(60vh - 100px);
  overflow-y: auto;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-nav a {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.mobile-menu-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-nav a:hover::before {
  left: 100%;
}

.mobile-menu-nav a:hover {
  background: rgba(218, 165, 32, 0.1);
  color: #DAA520;
  transform: translateX(4px);
}

.mobile-menu-nav a.mobile-menu-btn {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  color: #ffffff;
  font-weight: 600;
  margin-top: 1rem;
  box-shadow: 0 6px 18px rgba(218,165,32,0.35);
  border: none;
}

.mobile-menu-nav a.mobile-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(218,165,32,0.5);
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%) !important;
  color: #1a1a1a;
}

/* Animazioni di entrata per i link del menu */
.mobile-menu-container.active .mobile-menu-nav li {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-container.active .mobile-menu-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-container.active .mobile-menu-nav li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-container.active .mobile-menu-nav li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-container.active .mobile-menu-nav li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-container.active .mobile-menu-nav li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive per schermi molto piccoli */
@media (max-width: 480px) {
  .mobile-menu-panel {
    width: 90%;
    max-height: 70vh;
  }
  
  .mobile-menu-header {
    padding: 1rem;
  }
  
  .mobile-menu-title {
    font-size: 1.3rem;
  }
  
  .mobile-menu-nav {
    padding: 0.5rem;
  }
  
  .mobile-menu-nav a {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS - PAGINA SERVIZI (SOLO MOBILE)
   ========================================================================== */

/* Media query specifica per mobile - pagina servizi */
@media (max-width: 768px) {
  /* Fix scrolling mobile */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    position: relative !important;
    min-height: auto !important;
  }
  
  main {
    min-height: auto !important;
    overflow-y: auto !important;
  }
  
  /* Previeni interferenze flip card con scrolling */
  .flip-card {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .flip-card-inner {
    pointer-events: none !important;
  }
  
  .flip-card.flipped .flip-card-inner {
    pointer-events: auto !important;
  }
  
  .flip-card-front,
  .flip-card-back {
    pointer-events: auto !important;
  }
  
  /* Sezione servizi interattivi */
  #servizi-interattivi {
    padding: 2rem 0 !important;
    overflow-y: auto !important;
  }
  
  /* Pulsanti di selezione genere */
  .gender-selection {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }
  
  .gender-selection .btn {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1.1rem !important;
    text-align: center !important;
  }
  
  /* Navigazione categorie */
  .category-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
  }
  
  .category-btn {
    width: 100% !important;
    padding: 0.8rem !important;
    font-size: 1rem !important;
    text-align: center !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    background: #ffffff !important;
    color: #333 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  .category-btn.active,
  .category-btn:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700) !important;
    color: #1a1a1a !important;
    border-color: #DAA520 !important;
  }
  
  /* Container servizi */
  .services-wrapper {
    width: 100% !important;
  }
  
  .price-cards-container {
    width: 100% !important;
  }
  
  /* Flip card - ottimizzazione mobile */
  .flip-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 140px !important;
    margin-bottom: 1rem !important;
  }
  
  .flip-card-inner {
    width: 100% !important;
    height: 100% !important;
  }
  
  #servizi-interattivi .flip-card-front,
  #servizi-interattivi .flip-card-back {
    width: 100% !important;
    height: 100% !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  #servizi-interattivi .flip-card-front h3 {
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  #servizi-interattivi .flip-card-front .price-badge {
    font-size: 0.9rem !important;
    padding: 0.3rem 0.8rem !important;
    margin: 0 !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
  }
  
  .flip-card-hint {
    font-size: 0.7rem !important;
  }
  
  .flip-card-back p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  
  .flip-card-back .btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Grid layout per mobile */
  .price-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  /* Container principale */
  #servizi-interattivi .container {
    padding: 0 1rem !important;
  }
  
  /* Nascondi wrapper non attivi */
  .services-wrapper:not(.active) {
    display: none !important;
  }
  
  .services-wrapper.active {
    display: block !important;
  }
  
  .price-cards-container:not(.active) {
    display: none !important;
  }
  
  .price-cards-container.active {
    display: block !important;
  }
}

/* Mostra il nuovo menu mobile solo su dispositivi mobili */
@media (max-width: 768px) {
  .mobile-menu-container {
    display: block;
  }
  
  /* Nascondi il vecchio menu mobile su mobile */
  .mobile-menu-overlay,
  .mobile-menu-close {
    display: none !important;
  }
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #000000; /* black text */
  --muted: #111111; /* darker muted for contrast */
  --accent: #FFD700; /* gold for buttons */
  --accent-700: #DAA520;
  --accent-900: #B8860B;
  --primary: var(--accent);
  --primary-700: var(--accent-700);
  --card: #e0e0e0;
  --border: #000000; /* black border */
  --maxw: 1200px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  height: var(--vh);
  background: url('../img/sfondo-marmo-bianco.png') center/cover no-repeat;
  z-index: -1;
}

html, body {
  background: transparent; /* Changed from url to transparent */
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100dvh;
  min-height: var(--vh);
}

/* Estendi lo sfondo animato anche all'area principale */
main {
  background: transparent;
  min-height: calc(100vh - 140px); /* Altezza totale meno header e footer */
}


img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

.container { width: min(92%, var(--maxw)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 80px; overflow: visible;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}
.site-header .brand { color: black; }
.site-header .site-nav a { color: black; }
.site-header .btn-primary:hover { background: black; color: white; border-color: black; }
.nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: min(92%, var(--maxw));
  margin-inline: auto;
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 800; 
  font-size: 1.2rem; 
  letter-spacing: .2px; 
  text-shadow: 0 1px 0 rgba(0,0,0,.35); 
}

.brand-logo { 
  width: 32px; 
  height: 32px; 
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); 
}

.brand:hover { 
  text-shadow: 0 0 8px var(--accent); 
}

.site-nav { 
  display: flex;
  justify-content: center;
}

.site-nav .btn-primary { 
  transform: translateY(-3px); 
}

.site-nav ul { 
  list-style: none; 
  display: flex; 
  gap: 20px; 
  margin: 0; 
  padding: 0; 
  align-items: center; 
  justify-content: center;
}

.site-nav a { 
  color: var(--text); 
  text-decoration: none; 
  opacity: 0.95; 
}

.site-nav a:hover { 
  color: var(--primary); 
}

/* Enhanced nav visual for visibility and small animation */
.site-nav a { padding: 8px 10px; border-radius: 8px; transition: background .22s ease, transform .12s ease, box-shadow .2s ease, color .2s ease; }


/* General interactive radial highlight for tiles/cards */
.interactive { position: relative; overflow: hidden; --mx:50%; --my:50%; }
.interactive::before {
  content: ""; position: absolute; inset: -40% -40% -40% -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(300px 120px at var(--mx) var(--my), rgba(184,134,11,0.12), transparent 35%);
  opacity: 0; transform: scale(1); transition: opacity .28s ease, transform .5s ease;
}
.interactive:hover::before { opacity: 1; transform: scale(1.02); }
.interactive * { position: relative; z-index: 2; }

/* Floating effect for review cards and offered services */
@keyframes pulse-subtle { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.price-card.floaty { animation: pulse-subtle 8.5s ease-in-out infinite; }

/* Apply subtle glow and scale on hover for cards and pricing */
.price-card:hover, .social-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Ensure interactive elements receive pointer variables set by JS */
.menu-tile, .card, .price-card, .social-card, .price-item, .btn-social, .site-nav a { cursor: pointer; }

.nav-toggle { display: none; width: 42px; height: 36px; border: none; background: transparent; border-radius: 8px; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.2s ease, 
              color 0.2s ease, 
              border-color 0.2s ease, 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover { transform: translateY(-1px); border-color: black; box-shadow: 0 8px 20px rgba(218,165,32,0.4); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #DAA520 100%); color: #111; border-color: #DAA520; font-weight: 700; box-shadow: 0 4px 12px rgba(218,165,32,0.3); }
.btn-primary:hover { border-color: black; color: black; box-shadow: 0 8px 20px rgba(218,165,32,0.5); transform: translateY(-2px); }
.btn-outline { background: transparent; }
.btn-outline:hover { border-color: black; color: black; background: rgba(218,165,32,0.1); box-shadow: 0 8px 20px rgba(218,165,32,0.4); }
.btn.full { width: 100%; text-align: center; }

/* Enhanced hero section with larger title */
.hero {
  padding: 120px 0 80px;
  background: radial-gradient(1200px 400px at 20% -10%, rgba(218,165,32,.08), transparent);
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  min-height: var(--vh);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero--center .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero--center .hero-text {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1.1;
  margin: 0 0 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #1a252f;
  background: linear-gradient(90deg, 
    #1a252f 0%, 
    #1a252f 40%, 
    rgba(218,165,32,0.8) 50%, 
    #1a252f 60%, 
    #1a252f 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 8s ease-in-out infinite;
  position: relative;
  text-shadow: 0 0 20px rgba(218,165,32,0.3);
}

@keyframes goldShimmer {
  0% {
    background-position: -100% 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.hero-main-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
  animation: lightBeam 3s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes titleGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 20px rgba(218,165,32,0.3));
    transform: scale(1);
  }
  100% {
    filter: brightness(1.4) drop-shadow(0 0 40px rgba(218,165,32,0.8));
    transform: scale(1.02);
  }
}

@keyframes titleShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes titlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

@keyframes lightBeam {
  0% {
    opacity: 0.3;
    transform: scale(0.95) rotate(0deg);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05) rotate(5deg);
  }
}

.hero-subtitle {
  color: #1a252f;
  margin: 0 0 3rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  background: linear-gradient(90deg, 
    #1a252f 0%, 
    #1a252f 30%, 
    rgba(255,255,255,0.7) 45%, 
    rgba(218,165,32,0.6) 55%, 
    #1a252f 70%, 
    #1a252f 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: whiteGoldShimmer 10s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(218,165,32,0.2);
}

@keyframes whiteGoldShimmer {
  0% {
    background-position: -150% 0;
  }
  50% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.hero-media img { box-shadow: var(--shadow); border-radius: 14px; object-fit: cover; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.9,.2,1), box-shadow .6s ease; }

/* Enlarged hero image for index centered layout */
.hero--center .hero-media { width: 240px; height: 240px; margin: 18px auto 6px; border-radius: 50%; overflow: hidden; }
.hero--center .hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Hero gentle float animation */
@keyframes floaty { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.005); } 100% { transform: translateY(0) scale(1); } }
.hero-media img { animation: floaty 8s cubic-bezier(.25,.46,.45,.94) infinite; }



/* Sections */
.section { padding: 24px 0; }
.section-alt { 
  background: #f8f9fa;
  border-top: 1px solid rgba(218,165,32,0.2);
  border-image-source: linear-gradient(to right, transparent, rgba(218,165,32,0.15), transparent);
  border-image-slice: 1;
}
.section-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 16px; color: #2c3e50; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--primary); margin: 8px auto 0; }
.section-title.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.check-list li::before { content: "✔"; color: var(--primary-700); margin-right: 10px; }

/* Cards */
.card-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  justify-content: center;
  align-items: center;
}
.card-grid.vertical { grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 2px 0 rgba(255,255,255,0.02) inset; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: #2c3e50; }
.card p { margin: 0 0 12px; color: var(--muted); }

.card summary {
  text-align: center;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.card summary::-webkit-details-marker {
  display: none; /* For Safari */
}

.card summary:focus {
  outline: none;
}

.card[open] summary {
  text-align: center; /* Center summary text when open */
}

.card summary {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ */
  user-select: none;
}

details.card .description-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.5s cubic-bezier(0.2, 1, 0.3, 1),
  opacity 0.3s ease-in-out,
  transform 0.3s ease-in-out;
  text-align: center; /* Center description text */
}

details.card[open] .description-content {
  max-height: 500px; /* Adjust as needed for content */
  opacity: 1;
  transform: translateY(0);
}
.description-content > p {
  margin: 0;
  padding-top: 0.5em;
}

.is-animating {
  pointer-events: none;
}
.card p {
  margin-top: 1em;
  text-align: center; /* Center paragraph text */
}

.listino-link-wrapper {
  margin-top: 1.5em; /* Spacing above the button */
  text-align: center; /* Center the button */
}



/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--border); background: rgba(184,134,11,0.08); color: var(--primary); font-weight: 700; }
.badge-price { margin-top: 8px; }

/* Pricing */
.price-grid { display: grid; gap: 12px; max-width: 700px; margin: 0 auto; }
.price-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); padding: 14px 16px; border-radius: 10px; position: relative; overflow: hidden; }
.price-item .price { color: #000000; font-weight: 800; }
.price-item .dots { background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(255,255,255,0.08) 4px 8px); height: 1px; align-self: center; }
.price-item span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-item::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 120px at -10% 120%, rgba(184,134,11,0.08), transparent 40%); opacity: 0; transition: opacity .3s ease; }
.price-item:hover::before { opacity: 1; }

/* Big pricing cards (for prezzi.html) */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; position: relative; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,0.25); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 20px rgba(184,134,11,0.4); border-color: var(--accent); }
.price-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.price-card p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.price-badge { position: absolute; top: 16px; right: 16px; background: var(--accent); color: #111; font-weight: 900; padding: 8px 12px; border-radius: 12px; box-shadow: 0 8px 22px rgba(184,134,11,0.35); border: 1px solid var(--accent); }
.price-card::after { content: ""; position: absolute; inset: -20% -10% auto auto; height: 120px; width: 220px; background: radial-gradient(120px 60px at center, rgba(184,134,11,0.18), transparent 60%); transform: rotate(12deg); opacity: .55; pointer-events: none; }

@media (max-width: 880px) {
  .price-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 8px; }
.contact-list a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(184,134,11,0.4); }
.contact-form { 
  background: #ffffff; 
  border: 2px solid var(--border); 
  border-radius: var(--radius); 
  padding: 30px; 
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Form status message */
.form-status { margin-bottom: 10px; font-weight: 700; color: var(--primary); }
.form-row { margin-bottom: 20px; }
.form-row label { 
  display: block; 
  gap: 6px; 
  font-size: 1rem; 
  color: var(--text); 
  font-weight: 600;
  margin-bottom: 8px;
}
.form-row input, .form-row textarea { 
  width: 100%; 
  background: #ffffff; 
  border: 2px solid #e0e0e0; 
  color: var(--text); 
  padding: 15px 16px; 
  border-radius: 12px; 
  outline: none; 
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.form-row input:focus, .form-row textarea:focus { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 4px rgba(184,134,11,0.15); 
  background: #ffffff;
}
.form-row input::placeholder, .form-row textarea::placeholder {
  color: #999;
  font-style: italic;
}

.contact-grid { display: grid; grid-template-columns: 1fr 3.8fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--bg-alt);
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 20px; 
  padding: 0 20px; 
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
  text-align: center;
}

.footer-inner .copyright {
  order: 1;
  margin: 0;
  color: #000000;
  font-size: 0.75em;
  font-weight: 700;
  opacity: 0.6;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-inner .footer-link {
  order: 2;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0;
  border: none;
  background: none;
}

.footer-inner .footer-link:hover {
  color: var(--primary);
}

.footer-inner .social {
  display: none;
}
.social { 
  display: flex; 
  gap: 14px; 
  justify-content: flex-end;
  flex-shrink: 0;
  white-space: nowrap;
}
.social a { 
  color: var(--muted); 
  text-decoration: none;
  font-size: 0.75em;
  white-space: nowrap;
}
.social a:hover { 
  color: var(--primary); 
}

/* Footer link hover effect simplified */
.footer-link { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary); }

/* Social buttons centering */
.social-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.btn-social { padding: 14px 20px; border-radius: 999px; background: var(--card); border: 2px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .3px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform .3s cubic-bezier(.2,.9,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease, color .3s ease; position: relative; overflow: hidden; }

/* Social buttons hover effects simplified */
.btn-social:hover { transform: translateY(-2px) scale(1.05); border-color: black; color: white; }
.btn-ig:hover { background: #C71585; box-shadow: 0 8px 20px rgba(199,21,133,0.4); }
.btn-fb:hover { background: #1877F2; box-shadow: 0 8px 20px rgba(24,119,242,0.4); }
.btn-tiktok:hover { background: #000000; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.btn-maps:hover { background: linear-gradient(45deg, #34A853, #E4405F, #4285F4); box-shadow: 0 8px 20px rgba(52,168,83,0.3); }



/* Utilities */
.center { text-align: center; }

/* Hover animations simplified */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  border-color: var(--accent);
}
.gallery-grid img { transition: transform .25s ease, box-shadow .25s ease; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.btn { will-change: transform; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    min-height: 64px;
    padding: 12px 0;
  }

  .nav-wrapper {
    gap: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .hero { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; align-items: center; }
  .hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .section-title { font-size: clamp(1.4rem, 3vw, 2rem); }
}

/* Monochrome imagery with subtle color reveal (more dynamic) */
.hero-media img,
.gallery-grid img,
.about-media img {
  filter: grayscale(70%) contrast(1.05);
}
.gallery-grid img:hover,
.about-media img:hover {
  filter: grayscale(25%) contrast(1.05);
}

/* Elegant underline animation for nav */
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; /* thicker for visibility */
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* Utilities */
.nowrap { white-space: nowrap; }

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s cubic-bezier(.2,.9,.2,1), transform .9s cubic-bezier(.2,.9,.2,1); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Social grid */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.social-card { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s ease; }
.social-card img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; filter: grayscale(80%) contrast(1.05); transition: transform .3s cubic-bezier(.25,.46,.45,.94), filter .3s ease, box-shadow .3s ease; }
.social-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.social-card:hover img { transform: scale(1.05); filter: grayscale(30%) contrast(1.05); box-shadow: var(--shadow); }

/* Review Stars */
.stars {
  color: var(--primary);
  font-size: 1.2em;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Global links: avoid default blue, use muted with accent hover */
a { color: var(--muted); }
a:hover { color: var(--primary); }
a:visited { color: var(--muted); }

/* Tel links explicit */
a[href^="tel:"] { color: var(--text); text-decoration-color: rgba(184,134,11,0.4); }

@media (max-width: 980px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .social-grid { grid-template-columns: 1fr; }
}

/* Animated menu tiles (home) */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.menu-tile { position: relative; display: grid; place-content: center; padding: 24px 18px; border-radius: 14px; background: rgba(28,28,28,0.4); border: 1px solid rgba(255,255,255,0.04); text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate; transition: transform .5s cubic-bezier(.2,.9,.2,1), border-color .4s ease, box-shadow .5s ease, background .4s ease, backdrop-filter .4s ease; backdrop-filter: blur(4px); box-shadow: 0 0 20px rgba(184,134,11,0.1); }
.menu-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(200px 80px at var(--mx,50%) var(--my,50%), rgba(184,134,11,0.12), transparent 60%); opacity: 0; transition: opacity .35s ease; z-index: -1; }
.menu-tile:hover { transform: translateY(-8px) scale(1.05); border-color: rgba(184,134,11,0.2); background: rgba(184,134,11,0.12); box-shadow: 0 24px 60px rgba(184,134,11,0.3), 0 0 40px rgba(184,134,11,0.4), 0 0 80px rgba(184,134,11,0.2), 0 0 120px rgba(184,134,11,0.1); backdrop-filter: blur(8px); }
.menu-tile:hover::before { opacity: 1; }
.mt-title { font-weight: 800; letter-spacing: .2px; position: relative; }
.menu-tile:hover .mt-title::after {
  transform: scaleX(1);
}
.menu-tile .mt-title::after {
  content: none;
}
.mt-sub { color: var(--muted); font-size: .9rem; position: relative; display: inline-block; transition: all .35s cubic-bezier(.2,.9,.2,1); opacity: 0.85; }
.menu-tile:hover .mt-sub { opacity: 1; color: var(--text); transform: translateY(-2px); }

@media (max-width: 1100px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .menu-grid { grid-template-columns: 1fr; } }

/* Page transition (fade) */
.page-enter { opacity: 0; }
.page-enter-active { opacity: 1; transition: opacity .28s ease; }
.page-exit { opacity: 1; }
.page-exit-active { opacity: 0; transition: opacity .18s ease; }



/* Cookie Consent Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
}

.cookie-popup.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cookie-popup-content p {
  margin: 0 0 16px;
}

.cookie-popup-buttons {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Quick Navigation Styles */
.quick-nav {
  padding: 3rem 0;
  position: relative;
}

.quick-nav h2 {
  color: #000000;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, 
    #000000 0%, 
    #000000 35%, 
    rgba(218,165,32,0.7) 50%, 
    #000000 65%, 
    #000000 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 12s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(218,165,32,0.25);
}

.quick-nav-item h3 {
  color: #000000;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, 
    #000000 0%, 
    #000000 40%, 
    rgba(255,255,255,0.6) 50%, 
    #000000 60%, 
    #000000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: whiteGoldShimmer 9s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(218,165,32,0.15);
}

.nav-subtitle {
  text-align: center;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 3rem 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.nav-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.quick-nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.quick-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 80px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  background: transparent;
  border: 2px solid var(--primary-700);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.2);
}

.quick-nav-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(218,165,32,0.8), 0 0 30px rgba(218,165,32,1), 0 0 50px rgba(218,165,32,0.8), 0 0 80px rgba(218,165,32,0.6);
  border-color: var(--primary);
  background: var(--primary);
  color: #111;
}

.quick-nav-text {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsive for quick nav */
@media (max-width: 768px) {
  .quick-nav {
    padding: 60px 0;
  }
  
  .quick-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .quick-nav-item {
    padding: 2rem 1.5rem;
  }
  
  .quick-nav-icon {
    width: 60px;
    height: 60px;
  }
  
  .quick-nav-icon svg {
    width: 36px;
    height: 36px;
  }
  
  /* Fix for mobile quick nav */
  .quick-nav-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  .quick-nav-item h3 {
    font-size: 1.2rem;
  }
  
  .quick-nav-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .quick-nav {
    padding: 40px 0;
  }
  
  .quick-nav-item {
    padding: 1.5rem 1rem;
  }
}

/* Fix for mobile navigation and layout */
@media (max-width: 480px) {
  .hero-main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }
  
  .cta-group {
    gap: 1rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  /* Fix for potential overlap issues */
  .site-header {
    z-index: 100;
  }
  
  .quick-nav {
    z-index: 10;
  }
  
  /* Ensure proper spacing */
  .section {
    padding: 3rem 0;
  }
}

/* Fix for potential mobile z-index issues */
.cookie-popup {
  z-index: 1001;
}

.site-nav {
  z-index: 1000;
}

.site-header {
  z-index: 100;
}

/* MOBILE: Fix review cards text visibility and layout */
@media (max-width: 768px) {
  /* Fix scrolling mobile */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    position: relative !important;
    min-height: auto !important;
  }
  
  main {
    min-height: auto !important;
    overflow-y: auto !important;
  }
  
  /* Previeni interferenze flip card con scrolling */
  .flip-card {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .flip-card-inner {
    pointer-events: none !important;
  }
  
  .flip-card.flipped .flip-card-inner {
    pointer-events: auto !important;
  }
  
  .flip-card-front,
  .flip-card-back {
    pointer-events: auto !important;
  }
  
  .flip-card {
    min-height: 180px !important;
    aspect-ratio: 1/1 !important;
  }
  
  .flip-card-inner {
    width: 100% !important;
    height: 100% !important;
  }
  
  .flip-card-front,
  .flip-card-back {
    padding: 1.2rem !important;
  }
  
  .flip-card-front h3 {
    font-size: 1rem !important;
    margin: 0.5rem 0 0.8rem 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  .flip-card-front p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin: 0 0 0.8rem 0 !important;
    text-align: center !important;
    color: #666 !important;
  }
  
  .flip-card-front .stars {
    font-size: 1rem !important;
    margin: 0.5rem 0 !important;
  }
  
  .flip-card-hint {
    font-size: 0.65rem !important;
    margin-top: 0.8rem !important;
  }
  
  .flip-card-back p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 0 1rem 0 !important;
    text-align: center !important;
  }
  
  .flip-card-back .btn {
    font-size: 0.8rem !important;
    padding: 0.6rem 1.2rem !important;
    min-height: 44px !important;
    min-width: 120px !important;
  }
}

/* MOBILE: General button optimization */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
  }
  
  .btn-primary {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  
  .btn-outline {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .quick-nav-item {
    min-height: 44px;
  }
  
  /* MOBILE: Review cards grid optimization */
  .price-cards {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 20px 15px !important;
  }
  
  .flip-card {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* MOBILE: Text overflow prevention */
  .flip-card-front h3,
  .flip-card-front p,
  .flip-card-back p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* MOBILE: Better spacing for review content */
  .flip-card-front {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  
  .flip-card-front .stars {
    margin-top: auto !important;
  }
}

/* MOBILE: Small screen optimization (up to 480px) */
@media (max-width: 480px) {
  /* Fix scrolling mobile */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    position: relative !important;
    min-height: auto !important;
  }
  
  main {
    min-height: auto !important;
    overflow-y: auto !important;
  }
  
  /* Previeni interferenze flip card con scrolling */
  .flip-card {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .flip-card-inner {
    pointer-events: none !important;
  }
  
  .flip-card.flipped .flip-card-inner {
    pointer-events: auto !important;
  }
  
  .flip-card-front,
  .flip-card-back {
    pointer-events: auto !important;
  }
  
  .flip-card {
    min-height: 160px !important;
    aspect-ratio: 1/1 !important;
  }
  
  .flip-card-front,
  .flip-card-back {
    padding: 1rem !important;
  }
  
  .flip-card-front h3 {
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    margin: 0.4rem 0 0.6rem 0 !important;
  }
  
  .flip-card-front p {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.6rem 0 !important;
  }
  
  .flip-card-front .stars {
    font-size: 0.9rem !important;
    margin: 0.4rem 0 !important;
  }
  
  .flip-card-hint {
    font-size: 0.6rem !important;
    margin-top: 0.6rem !important;
  }
  
  .flip-card-back p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin: 0 0 0.8rem 0 !important;
  }
  
  .flip-card-back .btn {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    min-width: 100px !important;
  }
  
  /* MOBILE: Button optimization for small screens */
  .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .btn-primary {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

/* Gender selection centering */
.gender-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: transparent;
  border-radius: 20px;
  border: none;
}

.gender-selection .btn {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ddd;
  }
  50% {
    box-shadow: 0 10px 30px rgba(218,165,32,0.3);
    border-color: rgba(218,165,32,0.5);
  }
}

.gender-selection .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.gender-selection .btn:hover::before {
  left: 100%;
}

.gender-selection .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  background: #f8f9fa;
  animation: none;
  border-color: #999;
  color: #333;
}

.gender-selection .btn.active {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  border-color: #DAA520;
  color: #111;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(218,165,32,0.4);
  animation: none;
  transform: translateY(-2px);
  position: relative;
}

.gender-selection .btn.active::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.6) 0%, rgba(255,215,0,0.3) 40%, transparent 70%);
  animation: raggioLuminoso 1.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes raggioLuminoso {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

/* Category navigation centering */
.category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-btn {
  background: #f8f9fa;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.category-btn:hover {
  background: #f8f9fa;
  border-color: #999;
  color: #333;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  border-color: #DAA520;
  color: #111;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(218,165,32,0.3);
  transform: translateY(-2px);
}

.services-wrapper {
  display: none;
}

.services-wrapper.active {
  display: block;
}

.price-cards-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, max-height 0.5s ease-in-out, visibility 0s 0.5s;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.price-cards-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px; /* A large enough value to accommodate content */
  visibility: visible;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, max-height 0.5s ease-in-out;
}

/* Animazione di ingresso per le card */
.price-cards-container.active .flip-card {
  animation: cardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.price-cards-container.active .flip-card:nth-child(1) { animation-delay: 0.1s; }
.price-cards-container.active .flip-card:nth-child(2) { animation-delay: 0.2s; }
.price-cards-container.active .flip-card:nth-child(3) { animation-delay: 0.3s; }
.price-cards-container.active .flip-card:nth-child(4) { animation-delay: 0.4s; }
.price-cards-container.active .flip-card:nth-child(5) { animation-delay: 0.5s; }
.price-cards-container.active .flip-card:nth-child(6) { animation-delay: 0.6s; }
.price-cards-container.active .flip-card:nth-child(7) { animation-delay: 0.7s; }
.price-cards-container.active .flip-card:nth-child(8) { animation-delay: 0.8s; }
.price-cards-container.active .flip-card:nth-child(9) { animation-delay: 0.9s; }
.price-cards-container.active .flip-card:nth-child(10) { animation-delay: 1.0s; }

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Disabilita la sottolineatura del testo nelle card */
.flip-card h3,
.flip-card .price-badge {
  text-decoration: none !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.flip-card h3:hover,
.flip-card .price-badge:hover {
  text-decoration: none !important;
}

/* --- BUG FIX: Responsive Grid for Price Cards --- */

/* On medium screens (tablet), go to 2 columns */
@media (max-width: 992px) {
  .price-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* On small screens (mobile), go to 1 column */
@media (max-width: 576px) {
  .price-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 550px) {
  .site-footer {
    height: auto;
    padding: 10px 0;
  }
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .site-footer .copyright {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    order: 2; /* Move copyright below social links */
  }
  .social {
    order: 1; /* Move social links above copyright */
    justify-content: center;
  }
}