/* === Import Font === */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

/* === Variabili Globali === */
:root {
    --deep-black: #0a0c0f;
    --ink: #1a1814;
    --whiteink: #e8e3d9;
    --paper: #f5f0e8;
    --accent: #1a5a8a;
    --accent-glow: #2d8ad4;
    --muted: #3a5068;
    --border: #8fa4b5;
    --gold: #c9a96e;
    --gold-dark: #a8863f;
    --nav-bg: #0b1620;
    --card-bg: rgba(20, 25, 30, 0.6);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 10px 30px rgba(45, 138, 212, 0.3);
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-black);
    font-family: 'Lora', Georgia, serif;
    color: var(--whiteink);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === Scrollbar Stilizzata === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   NAVBAR FISSA
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
    padding: 0;
}

.navbar.scrolled {
    background: rgba(11, 22, 32, 0.95);
    border-bottom-color: var(--gold);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--whiteink);
    border: 2px solid var(--gold);
    transition: all var(--transition-smooth);
}

.nav-logo:hover .nav-logo-icon {
    background: var(--accent-glow);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(45, 138, 212, 0.4);
}

.nav-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--whiteink);
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-logo-text span {
    color: var(--gold);
}

/* Link navigazione */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--border);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--whiteink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    width: 100%;
}

/* Bottone contatti navbar */
.nav-cta {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--deep-black);
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.3);
}

/* Menu mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--whiteink);
    transition: all var(--transition-smooth);
}

/* ============================================
   HEADER HERO (Logo + Titolo)
   ============================================ */
.hero-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.8);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-header:hover .hero-backdrop {
    transform: scale(1);
}

/* Overlay gradient */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Particelle decorative */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 50% 40%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.15), transparent);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.hero-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 600;
    color: var(--whiteink);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 5px 40px rgba(0,0,0,0.6);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title .accent {
    color: var(--accent-glow);
    display: block;
    font-size: 0.7em;
    font-style: italic;
    margin-top: 5px;
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--border);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SEZIONE GALLERIA VETRINA
   ============================================ */
.vetrina-section {
    padding: 80px 40px;
    background: linear-gradient(180deg, var(--deep-black) 0%, #0d1117 50%, var(--deep-black) 100%);
    position: relative;
}

.vetrina-header {
    text-align: center;
    margin-bottom: 60px;
}

.vetrina-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
}

.vetrina-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--whiteink);
    margin-bottom: 15px;
}

.vetrina-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.Vetrina, .Vetrina2 {
    position: static;
    display: contents;
}

.ImgVetrina {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background-color: var(--muted);
    box-shadow: var(--shadow-md);
    transition: opacity 0.5s ease, transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transform: translateZ(0);
    border: 1px solid rgba(255,255,255,0.05);
}

.ImgVetrina:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

/* ============================================
   SEZIONE CARDS (Work in Progress / Processo)
   ============================================ */
.cards-section {
    padding: 80px 40px 120px;
    background: linear-gradient(180deg, var(--deep-black) 0%, #0a0f14 100%);
    position: relative;
}

.cards-header {
    text-align: center;
    margin-bottom: 60px;
}

.cards-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
}

.cards-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--whiteink);
}

.images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    max-width: 1500px;
    margin: 0 auto;
}

.img {
    position: relative;
    width: 420px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #14181e 0%, #0d1115 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 2px;
    padding: 20px;
}

.img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45,138,212,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.img:hover::before {
    opacity: 1;
}

.img:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

/* Icona grande per le card */
.img .card-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 15px;
    transition: all var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.img:hover .card-icon {
    color: var(--accent-glow);
    transform: scale(1.1);
}

/* Immagine interna alla terza card */
.production {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.55;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.img:hover .production {
    opacity: 0.75;
    transform: scale(1.05);
}

/* Testo e icone sopra l'immagine */
.img .card-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
}

.img .card-overlay .printer-icon {
    font-size: 2.8rem;
    color: white;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
    transition: all var(--transition-smooth);
}

.img:hover .card-overlay .printer-icon {
    transform: scale(1.15);
    color: var(--accent-glow);
}

.img .click-text {
    color: white;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 0.3em 1em;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--transition-smooth);
}

.img:hover .click-text {
    background: rgba(45, 138, 212, 0.25);
    border-color: var(--accent-glow);
    transform: scale(1.05);
}

/* Badge "Work in Progress" */
.img .wip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(201, 169, 110, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    z-index: 3;
}

/* ============================================
   FOOTER
   ============================================ */
.credits_conclusions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 8%;
    background: linear-gradient(180deg, #0a0f14 0%, #06090c 100%);
    color: white;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    gap: 50px;
    overflow: hidden;
}

.credits_conclusions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 90, 138, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.lateralleft1, .lateralright1 {
    flex: 1 1 300px;
    position: relative;
    z-index: 2;
}

.lateralleft1 h4, .lateralright1 h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
    letter-spacing: 2px;
    color: var(--whiteink);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 10px;
}

.social-links a {
    color: var(--whiteink);
    font-size: 1.3rem;
    transition: all var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 8px 0;
    transform-origin: left center;
}

.social-links a i {
    font-size: 1.6rem;
    width: 30px;
    color: var(--border);
    transition: color var(--transition-smooth);
}

.social-links a:hover {
    color: #ffffff;
    transform: translateX(12px);
}

.social-links a:hover i {
    color: var(--gold);
}

.lateralright1 {
    text-align: right;
}

.lateralright1 p {
    color: var(--border);
    font-size: 1rem;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.8;
}

/* Linea decorativa footer */
.footer-line {
    position: absolute;
    bottom: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
}

/* ============================================
   ANIMAZIONI SCROLL
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVITÀ
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 100px 30px;
        transition: right var(--transition-smooth);
        gap: 30px;
        border-left: 1px solid var(--gold);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-header {
        height: 80vh;
    }

    .vetrina-section,
    .cards-section {
        padding: 50px 20px;
    }

    .vetrina-wrapper {
        gap: 15px;
    }

    .ImgVetrina {
        width: calc(50% - 10px);
    }

    .images {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .img {
        width: 90%;
        max-width: 420px;
        aspect-ratio: 4 / 3;
    }

    .credits_conclusions {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .lateralright1 {
        text-align: center;
    }

    .lateralleft1 h4, .lateralright1 h4 {
        display: block;
        text-align: center;
    }

    .social-links a {
        justify-content: center;
        transform-origin: center center;
    }
    
    .social-links a:hover {
        transform: translateX(0) scale(1.1);
    }
}

@media (max-width: 480px) {
    .ImgVetrina {
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* === SEZIONE COMING SOON === */
.coming-soon-section {
    padding: 80px 40px 100px;
    background: linear-gradient(180deg, #0a0f14 0%, var(--deep-black) 100%);
    text-align: center;
}

.coming-soon-header {
    margin-bottom: 60px;
}

.coming-soon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.coming-soon-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: rgba(20, 25, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px 25px 30px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
}

.coming-soon-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.coming-soon-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--whiteink);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.coming-soon-card p {
    color: var(--border);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.gold-badge {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(201, 169, 110, 0.1);
}