/*
Theme Name: Oro d'Etna
Theme URI: https://orodetna.it
Description: Tema custom per Oro d'Etna — Eccellenze Siciliane dal 1990
Author: Kubeitalia
Author URI: https://kubeitalia.it
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: orodetna
*/

/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #8B7355;
    --color-accent: #C4A77D;
    --color-gold: #D4AF37;
    --color-cream: #FAF8F5;
    --color-warm-white: #FFFEF9;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-border: #E8E4DE;
    --color-success: #4A7C59;
    --color-error: #A94442;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.15);
}

/* ========================================
   RESET & BASE
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-warm-white);
    line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    position: absolute;
    word-wrap: normal !important;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
    color: var(--color-cream);
}
.loader-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}
.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: loadingBar 2s ease-in-out forwards;
}
@keyframes loadingBar {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    max-width: 1440px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

/* Header default — testo scuro, sfondo trasparente */
.header .nav-main a { color: var(--color-text); }
.header .nav-main a:hover { color: var(--color-primary); }
.header .nav-icon-btn svg { stroke: var(--color-primary); }
.header .menu-toggle span { background: var(--color-primary); }

/* Header scrolled — sfondo frosted glass */
.header.scrolled {
    background: rgba(255,254,249,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}
.header.scrolled .header-inner { padding: 0.75rem 1.5rem; }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}
.header.scrolled .logo img { height: 40px; }
.logo-white { display: none; }
.logo-black { display: block; }

/* ========================================
   NAV MAIN — Desktop
   ======================================== */

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
    padding: 0 1.5rem;
    min-width: 0;
}
.nav-main a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.nav-main > a::after,
.nav-main > .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}
.nav-main > a:hover::after,
.nav-main > a.current-menu-item::after,
.nav-main > .menu-item-has-children:hover > a::after,
.nav-main > .menu-item-has-children.current-menu-ancestor > a::after {
    width: 100%;
}

/* Submenu items — wrapper */
.menu-item-has-children {
    position: relative;
}
.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
/* Chevron indicator */
.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.3rem;
    transition: var(--transition-fast);
    order: 2;
}
.menu-item-has-children:hover > a::before {
    transform: rotate(-135deg);
}

/* Submenu dropdown */
.sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(255,254,249,0.98);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(8px);
    list-style: none;
}
.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
}
.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.sub-menu li {
    list-style: none;
}
.sub-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--color-text) !important;
    transition: var(--transition-fast);
}
.sub-menu a:hover {
    color: var(--color-accent) !important;
    background: rgba(196,167,125,0.06);
}
.sub-menu a.current-menu-item {
    color: var(--color-accent) !important;
}

/* ========================================
   NAV ACTIONS (language, account, cart)
   ======================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
}
.lang-btn {
    width: 32px; height: 24px;
    background: none;
    border: 1.5px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    transition: var(--transition-fast);
}
.lang-btn:hover, .lang-btn.active { border-color: var(--color-accent); }
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 2px; }

.nav-icon-btn {
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}
.nav-icon-btn svg {
    width: 22px; height: 22px;
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition-fast);
}
.nav-icon-btn:hover svg { stroke: var(--color-accent); }

.cart-count {
    position: absolute;
    top: -5px; right: -5px;
    width: 20px; height: 20px;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: var(--transition-fast);
}
.cart-count.active { transform: scale(1); }

/* ========================================
   MENU TOGGLE — Mobile
   ======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}
.menu-toggle span {
    width: 28px;
    height: 1.5px;
    transition: var(--transition-fast);
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 0;
    text-align: center;
    transition: var(--transition-fast);
}
.mobile-nav a:hover { color: var(--color-accent); }

/* Mobile submenu */
.mobile-nav .mobile-submenu {
    display: none;
    padding-left: 0;
}
.mobile-nav .mobile-submenu.active {
    display: block;
}
.mobile-nav .mobile-submenu a {
    font-size: 1.3rem;
    font-family: var(--font-body);
    color: rgba(255,255,255,0.6);
    padding: 0.4rem 0;
}
.mobile-nav .mobile-submenu a:hover { color: var(--color-accent); }
.mobile-nav .mobile-parent {
    cursor: pointer;
}
.mobile-nav .mobile-parent::after {
    content: ' +';
    font-family: var(--font-body);
    font-size: 1rem;
}
.mobile-nav .mobile-parent.open::after {
    content: ' −';
}

/* Mobile language switcher */
.mobile-nav .mobile-lang {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}
.mobile-nav .lang-btn {
    width: 40px; height: 30px;
    border-color: rgba(255,255,255,0.3);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
}
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a1a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
}
.hero-text {
    max-width: 600px;
}

/* Hero Label */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}
.hero-label::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--color-accent);
}
.hero-label span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--color-secondary);
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 480px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1.1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}
.btn svg {
    width: 16px; height: 16px;
    transition: var(--transition-fast);
}
.btn:hover svg {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 700px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}
.hero-image-main {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 550px;
    background: linear-gradient(180deg, #F5E6D3 0%, #E8D5C4 100%);
    border-radius: 200px 200px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}
.hero-image-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23C4A77D' fill-opacity='0.1' d='M47.5,-57.2C59.9,-45.8,67.5,-29.5,70.3,-12.3C73.1,4.9,71.2,23,62.4,36.8C53.6,50.6,38,60.1,21.1,66.1C4.2,72.1,-14,74.6,-29.5,69.3C-45,64,-57.8,50.9,-65.1,35.3C-72.4,19.7,-74.2,1.6,-70.2,-14.4C-66.2,-30.4,-56.4,-44.3,-43.3,-55.6C-30.2,-66.9,-13.8,-75.6,1.8,-77.8C17.4,-80,35.1,-68.6,47.5,-57.2Z' transform='translate(100 100)'/%3E%3C/svg%3E");
    background-size: cover;
}
.hero-image-main img {
    position: relative;
    z-index: 1;
    max-width: 80%;
    max-height: 85%;
    object-fit: contain;
}

/* Floating Info Boxes */
.hero-floating {
    position: absolute;
    background: white;
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    animation: floatBox 6s ease-in-out infinite;
}
.hero-floating-1 {
    top: 10%; right: 10%;
}
.hero-floating-2 {
    bottom: 15%; left: 5%;
    animation-delay: -3s;
}
.hero-floating-3 {
    top: 45%; right: 0;
    animation-delay: -1.5s;
}
.hero-floating-4 {
    bottom: 5%; right: 15%;
    animation-delay: -4.5s;
}
.hero-floating span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}
.hero-floating strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
}

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

/* Hero Centered (no image) */
.hero--centered .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero--centered .hero-text {
    max-width: 100%;
}
.hero--centered .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.hero--centered .hero-label {
    justify-content: center;
}
.hero--centered .hero-cta {
    justify-content: center;
}

/* Hero Slider */
.hero--slider {
    padding: 0;
}
.hero--slider .hero-bg-pattern {
    z-index: 1;
    pointer-events: none;
}
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}
.hero-slide[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.45);
}
.hero-slide[style*="background-image"] .hero-label span,
.hero-slide[style*="background-image"] .hero-title,
.hero-slide[style*="background-image"] .hero-title em,
.hero-slide[style*="background-image"] .hero-description {
    color: white;
}
.hero-slide[style*="background-image"] .btn-primary {
    background: white;
    color: var(--color-primary);
}
.hero-slide[style*="background-image"] .btn-secondary {
    border-color: white;
    color: white;
}
.hero-content--centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-content--centered .hero-text {
    max-width: 100%;
}
.hero-content--centered .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.hero-content--centered .hero-label {
    justify-content: center;
}
.hero-content--centered .hero-cta {
    justify-content: center;
}

/* Slider Dots */
.hero-slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}
.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-fast);
}
.hero-dot.active,
.hero-dot:hover {
    background: var(--color-accent);
}

/* ========================================
   SECTIONS — Common
   ======================================== */

.section { padding: var(--space-xl) 0; }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}
.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.section-label::before,
.section-label::after {
    content: '';
    width: 30px; height: 1px;
    background: var(--color-accent);
}
.section-label span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
}
.section-title { margin-bottom: var(--space-sm); }
.section-description {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FEATURES BAR
   ======================================== */

.features-bar {
    background: var(--color-primary);
    padding: var(--space-md) 0;
}
.features-list {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-cream);
}
.feature-item svg {
    width: 24px; height: 24px;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
}
.feature-item span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   CATEGORIES
   ======================================== */

.categories { background: var(--color-cream); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.category-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    display: block;
}
.category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}
.category-card:nth-child(1) .category-bg { background: linear-gradient(180deg, #722F37 0%, #4A1C23 100%); }
.category-card:nth-child(2) .category-bg { background: linear-gradient(180deg, #D4AF37 0%, #A68A2E 100%); }
.category-card:nth-child(3) .category-bg { background: linear-gradient(180deg, #6B8E23 0%, #4A6B1A 100%); }
.category-card:nth-child(4) .category-bg { background: linear-gradient(180deg, #8B7355 0%, #5D4E3A 100%); }
.category-card:nth-child(5) .category-bg { background: linear-gradient(180deg, #4A7C59 0%, #2D5A3A 100%); }
.category-card:nth-child(6) .category-bg { background: linear-gradient(180deg, #8B4513 0%, #5D2E0D 100%); }
.category-card:hover .category-bg { transform: scale(1.1); }
.category-bg[style*="background-image"] { background-size: cover !important; }
.category-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    z-index: 2;
}
.category-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.category-count { font-size: 0.75rem; opacity: 0.8; }
.category-arrow {
    position: absolute;
    top: var(--space-md); right: var(--space-md);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}
.category-card:hover .category-arrow { opacity: 1; transform: translateX(0); }
.category-arrow svg { width: 20px; height: 20px; stroke: white; stroke-width: 2; fill: none; }

/* ========================================
   PRODUCTS
   ======================================== */

.products-section { background: var(--color-warm-white); }
.products-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.products-nav button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}
.products-nav button::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}
.products-nav button.active,
.products-nav button:hover { color: var(--color-primary); }
.products-nav button.active::after { width: 100%; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}
.product-badge {
    position: absolute;
    top: var(--space-sm); left: var(--space-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 3;
}
.product-badge.new { background: var(--color-primary); color: white; }
.product-badge.sale { background: var(--color-error); color: white; }
.product-badge.bio { background: var(--color-success); color: white; }

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #F8F6F3 0%, #EDE9E3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: var(--space-sm);
    transition: var(--transition-smooth);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder {
    width: 60%; height: 80%;
    background: linear-gradient(180deg, rgba(139,115,85,0.2) 0%, rgba(139,115,85,0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-placeholder svg {
    width: 60px; height: 60px;
    stroke: var(--color-secondary);
    stroke-width: 1;
    fill: none;
    opacity: 0.5;
}
.product-actions {
    position: absolute;
    bottom: var(--space-sm); left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.product-action-btn {
    width: 44px; height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}
.product-action-btn:hover { background: var(--color-primary); }
.product-action-btn:hover svg { stroke: white; }
.product-action-btn svg {
    width: 20px; height: 20px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition-fast);
}
.product-info { padding: var(--space-md); }
.product-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-name a { color: inherit; }
.product-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-primary);
}
.product-price del { font-size: 1rem; color: var(--color-text-light); margin-right: 0.5rem; }
.product-price ins { text-decoration: none; }
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.product-rating svg { width: 14px; height: 14px; fill: var(--color-gold); }
.product-rating span { font-size: 0.8rem; color: var(--color-text-light); }

/* Product Cart Button (Temu style) */
.product-cart-btn {
    width: 44px; height: 44px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.product-cart-btn:hover { background: var(--color-accent); }
.product-cart-btn svg {
    width: 20px; height: 20px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

/* ========================================
   QUICK VIEW MODAL
   ======================================== */

.qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qv-overlay.active { opacity: 1; visibility: visible; }

.qv-modal {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 0;
}
.qv-modal.active { transform: translateY(0); }

.qv-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: var(--color-cream);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.qv-close svg {
    width: 18px; height: 18px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
}

.qv-loading {
    text-align: center;
    padding: var(--space-lg);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.qv-image {
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: var(--space-md);
}
.qv-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.qv-info {
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.qv-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.2;
}
.qv-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
}
.qv-price del { color: var(--color-text-light); font-size: 1.1rem; margin-right: 0.5rem; }
.qv-price ins { text-decoration: none; }
.qv-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Variations */
.qv-variations { display: flex; flex-direction: column; gap: var(--space-sm); }
.qv-variation-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.qv-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.qv-variation-opt {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.qv-variation-opt:hover { border-color: var(--color-accent); }
.qv-variation-opt.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

/* Quantity + Add to cart */
.qv-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-sm);
}
.qv-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.qv-qty-btn {
    width: 40px; height: 40px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.qv-qty-btn:hover { background: var(--color-cream); }
.qv-qty input {
    width: 40px; height: 40px;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    font-family: var(--font-body);
    -moz-appearance: textfield;
}
.qv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qv-add-to-cart { flex: 1; justify-content: center; }
.qv-add-to-cart.loading { opacity: 0.6; pointer-events: none; }

.qv-view-full {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: var(--space-sm);
}
.qv-view-full:hover { color: var(--color-primary); }

@media (max-width: 768px) {
    .qv-content { grid-template-columns: 1fr; }
    .qv-image { min-height: 200px; }
    .qv-info { padding: var(--space-md); }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 100px; right: 1.5rem;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-icon svg { width: 18px; height: 18px; stroke-width: 2; fill: none; }
.toast-icon.success { background: #E8F5E9; }
.toast-icon.success svg { stroke: var(--color-success); }
.toast-icon.coupon { background: #FFF3E0; }
.toast-icon.coupon svg { stroke: #E65100; }
.toast-icon.info { background: #E3F2FD; }
.toast-icon.info svg { stroke: #1565C0; }
.toast-body { flex: 1; }
.toast-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.15rem;
}
.toast-message {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .toast-container { right: 0.75rem; left: 0.75rem; }
    .toast { min-width: auto; }
}

/* ========================================
   STORY / AZIENDA
   ======================================== */

.story-section {
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}
.story-section .section-label span { color: var(--color-accent); }
.story-section .section-label::before,
.story-section .section-label::after { background: var(--color-accent); }
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}
.story-text h2 { color: white; margin-bottom: var(--space-md); }
.story-text h2 em { color: var(--color-accent); font-style: italic; }
.story-text p { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.9; margin-bottom: var(--space-md); }
.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.stat-item {
    text-align: center;
    padding: var(--space-md);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.story-visual { position: relative; height: 600px; }
.story-image {
    position: absolute;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #5D4E3A 100%);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.story-image-1 { width: 300px; height: 400px; top: 0; left: 0; }
.story-image-2 { width: 280px; height: 350px; bottom: 0; right: 0; }

/* ========================================
   EXPERIENCES
   ======================================== */

.experiences-section { background: var(--color-cream); }
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.experience-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}
.experience-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}
.experience-card:nth-child(1) .experience-image { background: linear-gradient(135deg, #722F37 0%, #4A1C23 100%); }
.experience-card:nth-child(2) .experience-image { background: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%); }
.experience-card:nth-child(3) .experience-image { background: linear-gradient(135deg, #6B8E23 0%, #4A6B1A 100%); }
.experience-card:nth-child(4) .experience-image { background: linear-gradient(135deg, #8B7355 0%, #5D4E3A 100%); }
.experience-image-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.experience-image-inner svg { width: 40px; height: 40px; stroke: white; stroke-width: 1.5; fill: none; }
.experience-content { padding: var(--space-md); }
.experience-price {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-cream);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}
.experience-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.experience-name a { color: inherit; }
.experience-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}
.experience-meta {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}
.experience-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.experience-meta-item svg { width: 16px; height: 16px; stroke: var(--color-accent); stroke-width: 1.5; fill: none; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Footer Brand */
.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: var(--space-md);
}
.footer-brand .footer-logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}
.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}
.footer-brand p a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}
.footer-brand p a:hover {
    color: var(--color-accent);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: var(--space-sm);
}
.footer-social a {
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.footer-social svg {
    width: 18px; height: 18px;
    stroke: white;
    fill: none;
}

/* Footer Columns */
.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    margin-bottom: var(--space-md);
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 0.8rem;
}
.footer-column a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.footer-column a:hover {
    color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
}
.footer-bottom a:hover {
    color: var(--color-accent);
}
.footer-payments {
    display: flex;
    gap: var(--space-sm);
}
.footer-payments span {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

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

@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .nav-main { display: none; }
    .menu-toggle { display: flex; }
    .lang-switcher { display: none; }

    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-description { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-label { justify-content: center; }
    .hero-visual { display: none; }
}

@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .story-content { grid-template-columns: 1fr; }
    .story-visual { display: none; }
    .experiences-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { padding: 1rem; }
    .logo { font-size: 1.4rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .features-list { gap: var(--space-md); }
    .feature-item span { display: none; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}
