/* 
   Style.css - Restyling Moderno per La Eliografica
   Design System: Premium, Clean, Tech-Blue & Rich Gold
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: hsla(205, 100%, 46%, 1);       /* Electric Brand Blue */
    --primary-hover: hsla(205, 100%, 38%, 1);
    --primary-light: hsla(205, 100%, 96%, 1);
    --primary-glow: rgba(0, 119, 235, 0.4);
    
    --secondary-blue: hsla(200, 95%, 40%, 1);
    --accent-pink: hsla(328, 90%, 50%, 1);    /* Magenta for Prodotti */
    --accent-gold: hsla(45, 100%, 50%, 1);     /* Gold/Yellow for Highlights */
    
    --bg-dark: hsla(210, 40%, 8%, 1);          /* Dark background */
    --bg-dark-card: hsla(210, 30%, 12%, 0.8);
    --bg-light: hsla(210, 50%, 98%, 1);        /* Light background */
    
    --text-dark: hsla(210, 25%, 12%, 1);
    --text-muted: hsla(210, 15%, 45%, 1);
    --text-light: hsla(210, 20%, 98%, 1);
    
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(0, 60, 120, 0.08);
    --glass-blur: blur(16px);
    
    /* Typography */
    --font-headings: sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: hsla(205, 30%, 75%, 1);
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Background Slideshow Layer */
.slideshow-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    background-color: #0d1b2a;
}

.slideshow-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(13, 27, 42, 0.4) 0%, rgba(13, 27, 42, 0.9) 100%);
    pointer-events: none;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    transform: scale(1.05);
}

.slide-img.active {
    opacity: 0.3;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1.03) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    transition: var(--transition-smooth);
}



.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Floating Action Contact Pill */
.floating-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    right: 24px;
    top: 100px;
    z-index: 90;
    gap: 12px;
    pointer-events: none;
}

.contact-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary);
}

.contact-pill.phone {
    color: #e63946;
    font-size: 16px;
    animation: pulseGlow 3s infinite;
}

.contact-pill.email {
    color: var(--primary);
    font-size: 14px;
}

.contact-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.contact-pill svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 8px 24px rgba(230, 57, 70, 0.15); }
    50% { box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4); }
    100% { box-shadow: 0 8px 24px rgba(230, 57, 70, 0.15); }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    margin-bottom: 40px;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 800px;
    text-align: center;
    box-shadow: var(--glass-shadow), 0 20px 50px rgba(0, 30, 60, 0.1);
    transform: translateY(0);
    animation: floatIn 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.hero-subtitle {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 119, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 119, 235, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(0, 119, 235, 0.2);
    transform: translateY(-3px);
}

/* Sections General */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Page glass overlay container */
.glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 60px;
    margin-bottom: 60px;
}

/* Products & Services */
.prodotti-intro {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.prodotti-text-area {
    flex: 1.2;
}

.prodotti-image-area {
    flex: 0.8;
}

.border-highlight-prodotti {
    border-left: 5px solid var(--accent-pink);
    padding-left: 20px;
    margin-bottom: 24px;
}

.prodotti-banner-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 4px solid white;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transition: var(--transition-smooth);
}

.prodotti-banner-img:hover {
    transform: scale(1.03);
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(0, 50, 100, 0.05);
    border-color: rgba(0, 119, 235, 0.1);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.service-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.service-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* Highlighted Services (Stampa 3D, Magliette, Tesi) */
.service-card.highlighted {
    background: linear-gradient(to bottom, #ffffff, var(--primary-light));
    border: 2px solid var(--accent-gold);
    box-shadow: 0 8px 24px rgba(255, 186, 8, 0.15);
}

.service-card.highlighted:hover {
    box-shadow: 0 16px 40px rgba(255, 186, 8, 0.3);
    transform: translateY(-10px);
}

.service-card.highlighted .service-icon-wrapper {
    background: var(--accent-gold);
    color: white;
}

.service-card.highlighted::before {
    content: 'Special';
    position: absolute;
    top: 14px;
    right: -26px;
    background: var(--accent-gold);
    color: white;
    font-family: var(--font-headings);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 28px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Photo Gallery styling */
.gallery-wrapper {
    margin-top: 40px;
}

.gallery-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e2e8f0;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 235, 0.4);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    color: white;
    font-size: 36px;
    font-weight: 300;
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: var(--shadow-md), 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Chi Siamo (About Us) Section */
.timeline-intro {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.border-highlight-chi {
    border-left: 5px solid var(--secondary-blue);
    padding-left: 20px;
    margin-bottom: 24px;
}

.chi-image-area {
    flex: 0.8;
}

.chi-text-area {
    flex: 1.2;
}

.chi-banner-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 4px solid white;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transition: var(--transition-smooth);
}

.chi-banner-img:hover {
    transform: scale(1.03);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.highlight-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.highlight-box h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 13px;
}

/* Dove Siamo (Location/Map) */
.map-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

.map-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    height: 480px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.info-item {
    display: flex;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.info-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 14px;
    white-space: pre-line;
}

/* Contatti (Contact Form) */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-label {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.privacy-container {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.privacy-box {
    height: 100px;
    overflow-y: scroll;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    padding-right: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.privacy-box::-webkit-scrollbar {
    width: 6px;
}
.privacy-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    margin-top: 3px;
    cursor: pointer;
}

.form-feedback {
    display: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Footer styling */
.main-footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-info h4 {
    color: white;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-info h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-nav a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Vanilla Lightbox Modal styling */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    margin-top: 16px;
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsiveness */

@media (max-width: 1024px) {
    .floating-contacts {
        position: static;
        display: block;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        margin-top: 80px;
        background: white;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: var(--shadow-sm);
        pointer-events: auto;
    }
    .floating-contacts .contact-pill {
        text-align: center; display: block;
        margin-bottom: 20px;
    }
    .hero-section {
        padding-top: 40px;
        min-height: auto;
    }
    
    .map-layout {
        grid-template-columns: 1fr;
    }
    
    .map-card {
        height: 350px;
    }
    
    .lightbox-prev { left: -10px; background: rgba(0,0,0,0.5); }
    .lightbox-next { right: -10px; background: rgba(0,0,0,0.5); }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 110;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 105;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-glass-card {
        padding: 30px;
    }
    
    .prodotti-intro, .timeline-intro {
        flex-direction: column;
    }
    
    .prodotti-image-area, .chi-image-area {
        width: 100%;
        max-width: 400px;
    }
    
    .glass-container {
        padding: 30px 16px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}
