/* CSS Custom Properties */
:root {
    --color-bg: #0d0d0d;
    --color-bg-alt: #161616;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-primary: #e6c875; /* Champagne Gold */
    --color-primary-hover: #c9ab57;
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

/* Typography */
h1, h2, h3, .logo, .signature, .mission-quote {
    font-family: var(--font-heading);
    font-weight: 400;
}

h2.section-title {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    transition: width var(--transition-slow);
    z-index: -1;
}

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

.btn-primary:hover {
    color: var(--color-bg);
    box-shadow: 0 0 15px rgba(230, 200, 117, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease forwards;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-bg);
    border: 1px solid var(--color-primary);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: all var(--transition-slow);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(230, 200, 117, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

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

/* Floating Language Switcher */
.floating-lang {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease forwards;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.floating-lang:hover {
    box-shadow: 0 0 20px rgba(230, 200, 117, 0.3);
    border-color: rgba(230, 200, 117, 0.5);
}

.floating-lang a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.floating-lang a.active {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 10px rgba(230, 200, 117, 0.5);
}

.floating-lang a:not(.active):hover {
    color: var(--color-primary);
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--color-bg);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 13, 13, 0.6); /* Trasparenza per mostrare la foto B/N */
    z-index: 1;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Sopra a tutto il sito */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero .subtitle {
    font-family: var(--font-body);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease forwards;
}

.hero .title {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #e6c875);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.2s ease forwards;
}

.hero .description {
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 300;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-heading);
    animation: fadeInUp 1.4s ease forwards;
}

/* About Section */
.about {
    background: var(--color-bg);
    position: relative;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-text em {
    color: var(--color-text);
    font-style: normal;
}

.about-text strong {
    color: var(--color-primary);
    font-weight: 400;
}

.read-more-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.read-more-content.expanded {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.btn-read-more:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.signature {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-top: 3rem;
    font-style: italic;
    opacity: 0.8;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: 15px; bottom: 15px;
    border: 1px solid var(--color-primary);
    z-index: -1;
    opacity: 0.3;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 200, 117, 0.3);
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.service-card ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.service-card ul li .price {
    color: var(--color-primary);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-desc {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
    filter: grayscale(20%);
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Mission Section */
.mission {
    background: var(--color-bg-alt);
    position: relative;
}

.mission-quote {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #fff;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.mission-desc {
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* FAQ Section */
.faq {
    background: var(--color-bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.15rem;
    font-family: var(--font-heading);
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: #fff;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-fast);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    color: var(--color-text-muted);
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials {
    background: var(--color-bg);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.review-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    padding: 2rem;
    border-radius: 4px;
    text-align: left;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 200, 117, 0.3);
}

.stars {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.reviewer {
    font-weight: 500;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* App Section */
.app-section {
    background: var(--color-bg-alt);
}
.app-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.app-logo {
    width: 200px;
    height: 200px;
    border-radius: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--color-glass-border);
    animation: fadeInUp 1s ease forwards;
}
.app-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #050505;
    padding: 6rem 0 2rem 0;
    border-top: 1px solid var(--color-glass-border);
}

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

.footer-title {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-link {
    font-size: 1.2rem;
    color: #fff;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-bottom .credits {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: none;
    font-family: var(--font-body);
}

.footer-bottom a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fff;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.delay-1 {
    transition-delay: 0.2s;
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .services-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero .title {
        font-size: 4.5rem;
    }
    .mission-quote {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-grid, .gallery-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        overflow-y: auto;
        background: rgba(13, 13, 13, 0.98);
        padding-top: 6rem;
        padding-bottom: 2rem;
        transition: 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--color-glass-border);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        text-align: center;
        margin-bottom: 1rem;
    }
    .floating-lang {
        bottom: 20px;
        left: 20px;
    }
    h2.section-title {
        font-size: 2.5rem;
    }
    .hero .title {
        font-size: 3.5rem;
    }
    .hero {
        background-image: url('../images/hero-bg-mobile.jpg');
        background-position: top center;
    }
}
