:root {
    --bg-primary: #09090b;
    --bg-secondary: #121216;
    --surface-color: #111115;
    --surface-color-light: #16161c;
    --accent-gold: #c5a059;
    --accent-gold-hover: #dfb76c;
    --accent-gold-transparent: rgba(197, 160, 89, 0.2);
    --text-primary: #f4f4f7;
    --text-secondary: #a1a1aa;
    --border-color: rgba(197, 160, 89, 0.2);
    --font-heading: 'Cinzel', 'Cinzel Decorative', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
    
    /* Safe Area Variables */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--safe-area-bottom) + 80px); /* For Bottom Nav */
}

/* Touch Optimizations */
a, button, .btn, .finish-btn, .insta-item, input, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button:active, a:active, .btn:active, .finish-btn:active, .bottom-nav-item:active {
    transform: scale(0.96);
    transition: transform 0.1s ease !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--accent-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: calc(1.5rem + var(--safe-area-top)) 0 1.5rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-fast), background var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1600607686527-6fb886090705?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #dfb76c, #c5a059);
    color: #09090b;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0c87d, #dfb76c);
    color: #09090b;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Floating WhatsApp Button (Sempre Visibile) */
.whatsapp-float {
    position: fixed;
    bottom: calc(85px + var(--safe-area-bottom));
    right: 20px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 998;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:active, .whatsapp-float:hover {
    transform: scale(1.1);
}

.footer-insta-link {
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    word-break: break-word;
    max-width: 100%;
}

.footer-insta-link span {
    white-space: normal;
}
/* Footer High Luxury Design */
.footer {
    background: #070709;
    padding: 5rem 0 2.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--accent-gold);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.footer-logo-text {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-address, .footer-vat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-contacts p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contact-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.contact-link:hover {
    opacity: 0.8;
}

.footer-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    width: fit-content;
    transition: all var(--transition-fast);
}

.footer-insta-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--accent-gold);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card {
    padding: 3rem 2.5rem;
    background: rgba(17, 17, 21, 0.4) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
}

/* Epic Intro Loader */
#intro-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#intro-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-logo {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--accent-gold);
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    animation: goldGlow 1.2s ease-in-out forwards;
}

@keyframes goldGlow {
    0% { opacity: 0; transform: scale(0.9); text-shadow: 0 0 0px rgba(197,160,89,0); }
    50% { opacity: 1; transform: scale(1); text-shadow: 0 0 30px rgba(197,160,89,0.8); }
    100% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 15px rgba(197,160,89,0.5); }
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .footer {
        padding: 4rem 0 6rem; /* Spazio extra in basso per la bottom nav */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .footer-brand, .footer-contacts, .footer-nav {
        align-items: center;
    }

    .footer-logo, .footer-insta-btn, .footer-nav a {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 2rem;
    }

    /* Header Mobile & Hamburger Dropdown */
    .header-container {
        position: relative;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0a0a0a;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    .nav.nav-active {
        right: 0;
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .nav a {
        font-size: 1.1rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 7rem;
        padding-bottom: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1.1rem 1.5rem;
    }

/* About Grid Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.about-image-wrapper img {
    width: 100%;
    max-height: 320px;
    display: block;
    object-fit: cover;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 240px !important;
        margin-top: 1rem;
    }

    .about-image-wrapper img {
        width: 100% !important;
        max-height: 240px !important;
        object-fit: cover;
    }
}

    .footer {
        padding-bottom: calc(var(--safe-area-bottom) + 100px);
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-info p, .footer-info h3 {
        margin-bottom: 0;
        text-align: center;
    }

    .footer-links {
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Bottom Nav for Mobile - Scroll Orizzontale Indipendente */
    .bottom-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.75rem 1rem calc(0.75rem + var(--safe-area-bottom));
        z-index: 999;
        justify-content: space-around;
        gap: 0.5rem;
        box-sizing: border-box;
    }

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .bottom-nav-item {
        flex: 0 0 auto;
        min-width: 68px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-secondary);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
        color: var(--accent-gold);
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: var(--text-secondary);
        transition: stroke 0.2s;
    }

    .bottom-nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        color: var(--accent-gold);
    }

    .bottom-nav-item:hover svg,
    .bottom-nav-item:active svg {
        stroke: var(--accent-gold);
    }
}
