/* styles.css — spostato da inline <style> in index.html */

/* Card Animata per Qualità Selezionata */
.tea-excellence-card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
}

.tea-excellence-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: #243137;
  border: 2px solid #bd9f67;
}

.card-front {
  color: #bd9f67;
}

.card-back {
  color: #bd9f67;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-title {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.card-icon {
  margin-top: 10px;
}

.card-description {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
}
:root {
    --gold-1: #D4AF37;
    --gold-2: #FFD700;
    --gold-3: #B8860B;
    --gold-4: #C5A572;
    --bg: #000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Safe area insets for iPhone notch/Dynamic Island */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
    body {
        /* Prevent text selection on iOS */
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        /* Smooth scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }
}

/* Fonts */
.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

/* Gradient text */
.gradient-gold {
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212,175,55,0.3);
}

/* Stili migliorati per il titolo e menu mobile */
.mobile-title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn {
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    background-color: rgba(212,175,55,0.15);
    box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

@media (max-width: 768px) {
    .mobile-title {
        font-size: 1.5rem;
    }
    
    .mobile-menu-container {
        border-top: 1px solid rgba(212,175,55,0.2);
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }
    
    .mobile-menu-item {
        margin: 0.25rem 0;
        border-left: 2px solid transparent;
        transition: all 0.3s ease;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .mobile-menu-item:hover, .mobile-menu-item:focus {
        border-left: 2px solid var(--gold-2);
        padding-left: 0.75rem;
        background-color: rgba(212,175,55,0.1);
    }
}

/* Parallax Hero Styles - Enhanced */
.parallax-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    will-change: transform;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform, opacity;
    transition: transform 0.1s linear, opacity 0.3s ease;
}

.layer-bg {
    background: url('../images/tea-parallax-bg.svg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    opacity: 0.6;
    filter: brightness(0.8) contrast(1.1);
}

.layer-mid {
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%),
        radial-gradient(circle at 30% 70%, rgba(212,175,55,0.25) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255,215,0,0.15) 0%, transparent 50%);
    z-index: 2;
}

/* Fade out layers on scroll */
.hero-scrolling .parallax-layer {
    opacity: 0.3;
}

/* Floating animation - Enhanced */
.floating {
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(212,175,55,0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-25px) rotate(2deg);
    }
    66% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Steam pseudo-element */
.steam {
    position: relative;
    overflow: visible;
}
.steam::before, .steam::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, rgba(212,175,55,0.3), transparent);
    animation: steam-rise 3s ease-in-out infinite;
    transform: translateX(-50%);
}
.steam::after {
    left: 60%;
    height: 80px;
    animation-delay: 0.9s;
}
@keyframes steam-rise {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.95) rotate(-2deg); }
    50% { opacity: 0.85; transform: translateX(-50%) translateY(-10px) scale(1.05) rotate(2deg); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(0.9) rotate(-2deg); }
}

/* Smooth reveal animation for sections
   Note: make visible by default so a JS runtime error doesn't hide all content.
   JS will still add .visible to trigger the transition when supported. */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-section.visible {
    /* no-op if already visible; kept for backward compat animation toggles */
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects */
.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
    transform: translateY(-2px);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(212,175,55,0.25);
    border-color: rgba(212,175,55,0.2);
    background: rgba(17, 17, 17, 0.8);
}

/* Glass morphism effect */
.glass-panel {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    color: var(--bg);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212,175,55,0.3), 0 0 0 0 rgba(212,175,55,0.5);
    animation: buttonPulse 2s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212,175,55,0.5), 0 0 0 8px rgba(212,175,55,0.1);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Additional button class for compatibility */
.button {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    color: var(--bg);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212,175,55,0.3), 0 0 0 0 rgba(212,175,55,0.5);
    animation: buttonPulse 2s ease-in-out infinite;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212,175,55,0.5), 0 0 0 8px rgba(212,175,55,0.1);
}

.button:active {
    transform: translateY(-2px) scale(1.02);
}

.button .wrap p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button .wrap span {
    margin-right: 0.5em;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(212,175,55,0.3), 0 0 0 0 rgba(212,175,55,0.5);
    }
    50% {
        box-shadow: 0 10px 30px rgba(212,175,55,0.4), 0 0 0 4px rgba(212,175,55,0.2);
    }
}

/* Secondary button style (outline) - Enhanced */
.btn-secondary {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212,175,55,0.4);
    color: var(--gold-2);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(255,215,0,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.1));
    border-color: rgba(212,175,55,0.8);
    color: var(--gold-1);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212,175,55,0.3), 0 0 0 8px rgba(212,175,55,0.05);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Hero scroll indicator - Enhanced */
.hero-scroll-indicator {
    opacity: 0.9;
    animation: float-indicator 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.2s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateY(4px) scale(1.1);
}

.hero-scroll-indicator svg { 
    filter: drop-shadow(0 8px 20px rgba(212,175,55,0.4));
    transition: filter 0.3s ease;
}

.hero-scroll-indicator:hover svg {
    filter: drop-shadow(0 10px 30px rgba(212,175,55,0.6));
}

@keyframes float-indicator {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(10px); 
        opacity: 0.6; 
    }
}

/* Hide scroll indicator when scrolling */
.hero-scrolling .hero-scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

.geometric-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212,175,55,0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212,175,55,0.03) 0%, transparent 50%);
}

/* Accessibility: visible focus states */
a:focus, button:focus {
    outline: 3px solid rgba(212,175,55,0.7);
    outline-offset: 3px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #111;
    color: var(--gold-2);
    z-index: 9999;
    border-radius: 6px;
}

/* Enhanced Navigation */
nav {
    transition: all 0.3s ease;
}

/* Mobile nav open state */
.mobile-open #mobile-menu {
    display: block !important;
}

/* make the favicon icon area have a subtle glow on supporting devices */
link[rel~="icon"] {
    filter: drop-shadow(0 2px 6px rgba(212,175,55,0.15));
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold-1), var(--gold-2));
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Reveal card animation */
.reveal-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Enhanced section transitions */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(212,175,55,0.2), 
        transparent
    );
}

/* Decorative elements - Enhanced */
.parallax-decorative {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0.15;
    transition: opacity 0.3s ease, transform 0.1s linear;
    filter: blur(1px);
}

.parallax-decorative:nth-child(odd) {
    animation: floatRotate 12s ease-in-out infinite;
}

.parallax-decorative:nth-child(even) {
    animation: floatRotate 15s ease-in-out infinite reverse;
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(-15px) rotate(-5deg) scale(0.95);
    }
}

/* Fade out decorative elements on scroll */
.hero-scrolling .parallax-decorative {
    opacity: 0;
}

/* Enhanced hero content */
.hero-content {
    position: relative;
    z-index: 10;
    will-change: transform, opacity, filter;
    animation: heroFadeIn 1.2s ease-out;
    transition: transform 0.1s linear, opacity 0.2s ease, filter 0.2s ease;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(212,175,55,0.4), 0 0 60px rgba(212,175,55,0.2);
    animation: titleGlow 3s ease-in-out infinite alternate;
    transition: transform 0.1s linear, opacity 0.2s ease;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 0.95;
    transition: transform 0.1s linear, opacity 0.2s ease;
}

.hero-content > div {
    transition: transform 0.1s linear, opacity 0.2s ease;
}

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

@keyframes titleGlow {
    from {
        text-shadow: 0 4px 20px rgba(212,175,55,0.4), 0 0 60px rgba(212,175,55,0.2);
    }
    to {
        text-shadow: 0 4px 30px rgba(212,175,55,0.6), 0 0 80px rgba(212,175,55,0.3);
    }
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .floating, .steam::before, .card-hover, .hero-bg, .animate-bounce {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-bg { background-position: center; }
    
    .hero-content h1 { 
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-content p { 
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Make hero buttons full width on small screens */
    .btn-hero { 
        width: 100%; 
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
    }
    .btn-hero + .btn-hero { margin-top: 1rem; }

    /* Reduce heavy animations for mobile to preserve battery/performance */
    .parallax-decorative { 
        opacity: 0.08;
        animation: none;
    }
    .floating { animation: float 10s ease-in-out infinite; }
    .steam::before, .steam::after { display: none; }

    /* Ensure the scroll indicator is smaller/not intrusive */
    .hero-scroll-indicator { 
        bottom: 2rem; 
        transform: translateX(-50%) scale(0.85);
    }
    
    .layer-mid {
        background: 
            linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%),
            radial-gradient(circle at 50% 50%, rgba(212,175,55,0.2) 0%, transparent 70%);
    }
}

/* Mobile-specific overrides for the numbered scrolling section */
@media (max-width: 768px) {
    section#countdown {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Make each item shorter and ensure good spacing for tap targets */
    section#countdown ol li {
        padding: 3.25rem 1.25rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        top: 0; /* base fallback */
    }

    /* Center the big counter on mobile and reduce its size */
    section#countdown ol li:before {
        left: 50% !important;
        transform: translate(-50%, -10%);
        font-size: 12vh;
        opacity: 0.14;
    }

    /* Hide the fixed scroll-cursor on small screens to avoid obstruction */
    .scroll-cursor { display: none; }

    /* Mobile-friendly top/height steps (slightly larger offset steps than desktop for more separation) */
    section#countdown ol li:nth-child(1)  { top: 0vh;    height: calc(100vh - 0vh); }
    section#countdown ol li:nth-child(2)  { top: 7vh;    height: calc(100vh - 7vh); }
    section#countdown ol li:nth-child(3)  { top: 14vh;   height: calc(100vh - 14vh); }
    section#countdown ol li:nth-child(4)  { top: 21vh;   height: calc(100vh - 21vh); }
    section#countdown ol li:nth-child(5)  { top: 28vh;   height: calc(100vh - 28vh); }
    section#countdown ol li:nth-child(6)  { top: 35vh;   height: calc(100vh - 35vh); }
    section#countdown ol li:nth-child(7)  { top: 42vh;   height: calc(100vh - 42vh); }
    section#countdown ol li:nth-child(8)  { top: 49vh;   height: calc(100vh - 49vh); }
    section#countdown ol li:nth-child(9)  { top: 56vh;   height: calc(100vh - 56vh); }
    section#countdown ol li:nth-child(10) { top: 63vh;   height: calc(100vh - 63vh); }
    section#countdown ol li:nth-child(11) { top: 70vh;   height: calc(100vh - 70vh); }
    section#countdown ol li:nth-child(12) { top: 77vh;   height: calc(100vh - 77vh); }

    /* Slightly reduce the large-number opacity/size on very small devices */
    @media (max-width: 420px) {
        section#countdown ol li:before { font-size: 10.5vh; opacity: 0.12; }
        section#countdown ol li { padding: 2.5rem 1rem; }
    }
}

/* Small utility to improve contrast on borderline elements */
.text-contrast { color: #eaeaea; }

/* Intense cinematic overlays and stronger visual styles
   These are applied generally; JS adjusts CSS variables for dynamic control.
*/
.hero-bg {
    /* allow overlay via CSS variable */
    --hero-overlay-opacity: 0;
    --hero-scale: 1;
    --hero-blur: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s linear;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 50% 20%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.7) 100%),
                linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 60%);
    opacity: var(--hero-overlay-opacity, 0);
    transition: opacity 300ms ease;
    mix-blend-mode: multiply;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 400ms ease;
}

.hero-scrolling .hero-bg::after {
    opacity: var(--hero-overlay-opacity, 0);
}

/* Intensify gradient and glow for hero when class added */
.cinematic-intense .gradient-gold {
    text-shadow: 0 0 40px rgba(212,175,55,0.45);
}

/* stronger button emphasis in intense mode */
.cinematic-intense .btn-primary {
    box-shadow: 0 18px 40px rgba(212,175,55,0.18);
}

/* Decorative elements get stronger parallax and subtle rotation */
.cinematic-intense .parallax-decorative {
    will-change: transform;
    transition: transform 160ms linear;
}

/* Add heavier blur + contrast options that JS can toggle on hero-content */
.hero-content.cinematic-blur {
    filter: blur(0px) contrast(1.02);
    transition: filter 200ms linear, transform 200ms linear, opacity 200ms linear;
}

/* ----------------------
   Sezione numerata sticky
   ---------------------- */
/* reset list style and prepare counter */
section#countdown ol {
    list-style: none;
    counter-reset: days-counter;
    font-size: 1.1rem;
    position: relative;
    padding: 0;
}

section#countdown ol li {
    counter-increment: days-counter;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    position: sticky;
    z-index: 5;
    top: 0;
    padding: 2rem 1rem;
    font-size: 1rem; /* ensure list text is compact */
    /* Slightly increase spacing between words for readability while scrolling */
    word-spacing: 0.06em;
}

section#countdown ol li:before {
    content: counter(days-counter);
    z-index: -1;
    position: absolute;
    opacity: 0.12;
    font-size: 11vh;
    font-family: 'Major Mono Display', monospace;
    transform: translate(-50%, -5%);
    pointer-events: none;
}

/* alternate left / right placement for big numbers */
section#countdown ol li:nth-child(odd):before { left: 0%; }
section#countdown ol li:nth-child(even):before { left: 100%; }

/* adjust smaller devices */
@media (max-width: 768px) {
    section#countdown ol li:before { font-size: 12vh; opacity: 0.14; }
    section#countdown ol li { padding: 3rem 1rem; }
}

/* Use explicit top/height offsets for each of the 12 items with slightly larger steps
    top: (n-1)*7vh and height: calc(100vh - (n-1)*7vh) for a touch more separation */
section#countdown ol li:nth-child(1)  { top: 0vh;   height: calc(100vh - 0vh); }
section#countdown ol li:nth-child(2)  { top: 7vh;   height: calc(100vh - 7vh); }
section#countdown ol li:nth-child(3)  { top: 14vh;  height: calc(100vh - 14vh); }
section#countdown ol li:nth-child(4)  { top: 21vh;  height: calc(100vh - 21vh); }
section#countdown ol li:nth-child(5)  { top: 28vh;  height: calc(100vh - 28vh); }
section#countdown ol li:nth-child(6)  { top: 35vh;  height: calc(100vh - 35vh); }
section#countdown ol li:nth-child(7)  { top: 42vh;  height: calc(100vh - 42vh); }
section#countdown ol li:nth-child(8)  { top: 49vh;  height: calc(100vh - 49vh); }
section#countdown ol li:nth-child(9)  { top: 56vh;  height: calc(100vh - 56vh); }
section#countdown ol li:nth-child(10) { top: 63vh;  height: calc(100vh - 63vh); }
section#countdown ol li:nth-child(11) { top: 70vh;  height: calc(100vh - 70vh); }
section#countdown ol li:nth-child(12) { top: 77vh;  height: calc(100vh - 77vh); }

/* Scroll cursor SVG (matches example) */
.scroll-cursor { position: fixed; bottom: 1rem; left: 1rem; width: 44px; height: auto; color: rgba(255,255,255,0.85); z-index: 60; animation: fadeOut 0.5s 10s forwards; }
.scroll-cursor #offset { animation: removeOffset 2s 5 ease-in-out; }
@keyframes removeOffset { 37.5% { stroke-dashoffset: 0; } 75% { stroke-dashoffset: var(--offset); } }

/* Reveal animation for the short-benefits list */
.benefici-list li {
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
    transform: translateY(18px);
    opacity: 0;
    will-change: transform, opacity;
}
.benefici-list li.pre-reveal { opacity: 0; }
.benefici-list li.in-view { transform: translateY(0); opacity: 1; }

/* Subtle stagger by nth-child for a nicer entry rhythm */
.benefici-list li.in-view:nth-child(1)  { transition-delay: 0ms; }
.benefici-list li.in-view:nth-child(2)  { transition-delay: 40ms; }
.benefici-list li.in-view:nth-child(3)  { transition-delay: 80ms; }
.benefici-list li.in-view:nth-child(4)  { transition-delay: 120ms; }
.benefici-list li.in-view:nth-child(5)  { transition-delay: 160ms; }
.benefici-list li.in-view:nth-child(6)  { transition-delay: 200ms; }
.benefici-list li.in-view:nth-child(7)  { transition-delay: 240ms; }
.benefici-list li.in-view:nth-child(8)  { transition-delay: 280ms; }
.benefici-list li.in-view:nth-child(9)  { transition-delay: 320ms; }
.benefici-list li.in-view:nth-child(10) { transition-delay: 360ms; }
.benefici-list li.in-view:nth-child(11) { transition-delay: 400ms; }
.benefici-list li.in-view:nth-child(12) { transition-delay: 440ms; }

/* Accent colors for each benefit (subtle) */
.benefici-list li { color: var(--text-secondary); }
.benefici-list li:nth-child(1)  { color: #FFDFA8; }
.benefici-list li:nth-child(2)  { color: #FFE7C4; }
.benefici-list li:nth-child(3)  { color: #FFE1A8; }
.benefici-list li:nth-child(4)  { color: #FFEFCF; }
.benefici-list li:nth-child(5)  { color: #FFF4D9; }
.benefici-list li:nth-child(6)  { color: #E9F7DF; }
.benefici-list li:nth-child(7)  { color: #DFF3F4; }
.benefici-list li:nth-child(8)  { color: #E7F0FF; }
.benefici-list li:nth-child(9)  { color: #F0E7FF; }
.benefici-list li:nth-child(10) { color: #FFDFF0; }
.benefici-list li:nth-child(11) { color: #FFEFE6; }
.benefici-list li:nth-child(12) { color: #FFF8E6; }

/* (duplicate corrected above) */

/* Hide cursor when body has class set by JS */
body.cursor-hidden .scroll-cursor { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 240ms ease, transform 240ms ease; }




/* Product Slider */
.product-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.product-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.product-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-slide:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .product-slide {
        flex: 0 0 32%;
    }
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-slide:hover .product-info {
    transform: translateY(0);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.slider-prev:hover,
.slider-next:hover,
.slider-prev:active,
.slider-next:active {
    background-color: rgba(0, 0, 0, 0.9);
}

.slider-prev:active,
.slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Product Modal */
.product-modal {
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal .bg-white {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-modal.active .bg-white {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, transform 0.2s;
}

.close-modal:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.2);
}

.quiz-option-icon {
    display: none;
}

.quiz-option.selected .quiz-option-icon {
    display: block;
}

.quiz-option:not(.selected) {
    opacity: 0.7;
}

/* Quiz particles animation */
.quiz-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.quiz-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: quiz-particle-float 8s infinite ease-in-out;
}

.quiz-particles .particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.quiz-particles .particle:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.quiz-particles .particle:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.quiz-particles .particle:nth-child(4) {
    top: 80%;
    left: 80%;
    animation-delay: 3s;
}

.quiz-particles .particle:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes quiz-particle-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Quiz result enhancements */
#quiz-results h3 {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Quiz question transitions */
.quiz-question {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.quiz-question.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced quiz option hover effects */
.quiz-option {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.quiz-option.selected {
    border-color: rgb(250, 204, 21);
    background-color: rgba(250, 204, 21, 0.1);
    animation: selectPulse 0.4s ease;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.catalogo-fullscreen-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.catalogo-iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

#page-wrapper {
    height: 100%;
    width: 100%;
}