/* ========================================
   AEGIS CORE LUXURY - Premium Stylesheet
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-gold: #d4af37;
    --color-gold-light: #f4d03f;
    --color-gold-dark: #b8941f;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #888888;
    --color-gray-dark: #1a1a1a;
    
    --font-logo: 'Poiret One', cursive;
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

p {
    font-family: var(--font-body);
    font-weight: 300;
}

/* ========================================
   NAVIGATION
   ======================================== */
.luxury-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.luxury-nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 5px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--color-gold-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-gold);
}

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    border-radius: 2px;
    color: var(--color-black) !important;
    font-weight: 500;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.3)),
        url('/gallery/01.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 15px;
    color: var(--color-gold);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out;
}

.title-sub {
    display: block;
    font-family: var(--font-logo);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 15px;
    color: var(--color-white);
    margin-top: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--color-gray);
    margin: 2rem 0;
    font-weight: 300;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-icon {
    color: var(--color-gold);
    font-size: 0.7rem;
}

.hero-note {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-gold);
    font-style: italic;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: var(--color-black);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-gold));
    animation: scrollDown 2s infinite;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 8rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--color-gold);
}

.section-header.centered .section-label::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 300;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-top: 1.5rem;
    font-weight: 300;
}

/* ========================================
   CHI SIAMO SECTION
   ======================================== */
.chi-siamo-section {
    background: var(--color-gray-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.content-grid > * {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-large {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-gold-light);
    margin-bottom: 2rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-light);
}

.quote-box {
    margin-top: 3rem;
    padding: 2rem;
    border-left: 3px solid var(--color-gold);
    border-radius: 0 8px 8px 0;
    background: rgba(212, 175, 55, 0.05);
}

.quote-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-gold);
    line-height: 1.5;
}

.content-visual {
    display: flex;
    justify-content: center;
}

.visual-box {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    text-align: center;
}

.visual-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.visual-box h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.visual-box p {
    color: var(--color-gray-light);
    line-height: 1.6;
}

/* ========================================
   SERVIZI SECTION
   ======================================== */
.servizi-section {
    background: var(--color-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--color-gray-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

.services-note {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--color-gold);
    border-right: 3px solid var(--color-gold);
    border-radius: 8px;
}

/* ========================================
   FILOSOFIA SECTION
   ======================================== */
.filosofia-section {
    background: var(--color-gray-dark);
}

.filosofia-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.filosofia-content .text-large {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.text-emphasized {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--color-white);
    line-height: 1.6;
    margin: 3rem 0;
}

.filosofia-statement {
    margin-top: 4rem;
    padding: 3rem 0;
}

.statement-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 2rem 0;
}

.statement-text {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-gold);
    line-height: 1.5;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    background: var(--color-black);
    padding-bottom: 6rem;
}

.gallery-slider {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: var(--transition-smooth);
}

.gallery-slide:hover img {
    filter: brightness(1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    color: var(--color-black);
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--color-gold-light);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 2rem;
}

.gallery-nav.next {
    right: 2rem;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--color-gold);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-indicator.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

/* ========================================
   CONTATTI SECTION
   ======================================== */
.contatti-section {
    background: var(--color-gray-dark);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-box {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info-text {
    font-size: 1.2rem;
    color: var(--color-white);
    margin: 0;
}

.contact-info-text a:hover {
    color: var(--color-gold-light) !important;
    text-decoration: underline !important;
}

.contact-form {
    background: var(--color-black);
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-gray);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--color-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.luxury-footer {
    background: var(--color-black);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: center;
}

.footer-brand h3 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-family: var(--font-secondary);
    color: var(--color-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-email {
    margin-top: 1.5rem;
    font-style: normal !important;
}

.footer-email a:hover {
    color: var(--color-gold-light) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for child elements */
.service-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-text,
.content-visual {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Smooth background transitions */
.section {
    background-attachment: fixed;
    will-change: opacity, transform;
}

/* Parallax-like smooth scrolling effect */
@media (prefers-reduced-motion: no-preference) {
    .hero-overlay {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1.5rem 2rem;
    }
    
    .section-container {
        padding: 0 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .title-main {
        letter-spacing: 5px;
    }
    
    .title-sub {
        letter-spacing: 8px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-nav.prev {
        left: 1rem;
    }
    
    .gallery-nav.next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .statement-text,
    .quote-text {
        font-size: 1.3rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
