/* 3DLugano CSS - Premium Design System */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --bg-navbar: rgba(10, 10, 10, 0.85);
    --primary-cyan: #22d3ee;
    --primary-orange: #fb923c;
    --text-white: #fafafa;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility Focus */
*:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 4px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.badge {
    color: var(--primary-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-orange));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition-standard);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition-standard);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    background-color: #050505;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #22d3ee, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary-cyan);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-white);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
    z-index: 1100;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-cyan);
}

.mobile-menu-btn.active {
    background: var(--primary-cyan);
    color: #000;
}

/* BUTTONS */
.btn-primary {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-cyan), #0891b2);
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-standard);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

.btn-outline {
    padding: 0.8rem 2rem;
    border: 1px solid var(--border);
    color: var(--text-white);
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-standard);
}

.btn-outline:hover {
    background: var(--border);
    border-color: var(--text-white);
}

/* CARDS & SERVICES */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: #222;
}

.card-icon i {
    width: 32px;
    height: 32px;
}

.cyan-glow {
    color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.orange-glow {
    color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.1);
}

.purple-glow {
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start; /* Allinea all'inizio della prima riga */
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.service-list svg {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px;
}

.service-list i.cyan, .service-list svg.cyan { color: var(--primary-cyan); }
.service-list i.orange, .service-list svg.orange { color: var(--primary-orange); }
.service-list i.purple, .service-list svg.purple { color: #a855f7; }

/* GALLERY */
.gallery {
    padding: 6rem 0;
    background: #050505;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34, 211, 238, 0.1);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel-error {
    color: var(--primary-orange);
    text-align: center;
    padding: 2rem;
    display: none;
}


.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.carousel-nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
}

.carousel-nav-arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-standard);
}

.carousel-nav-arrows button:hover {
    background: var(--primary-cyan);
    color: #000;
}

.carousel-thumbs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-standard);
    opacity: 0.6;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active {
    border-color: var(--primary-cyan);
    opacity: 1;
    transform: translateY(-5px);
}

.thumb:hover {
    opacity: 1;
}

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

.carousel-info h3 {
    font-size: 1.8rem;
    color: var(--text-white);
}

@media (max-width: 768px) {
    .carousel-main { height: 400px; }
    .thumb { width: 80px; height: 60px; }
}

/* ABOUT SECTION */
.about {
    padding: 10rem 0;
    background: var(--bg-dark);
}

.about-container {
    display: flex;
    gap: 6rem;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    margin: 1rem 0 2rem 0;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.visual-card i {
    width: 64px;
    height: 64px;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer ul li a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer ul li a:hover {
    color: var(--primary-cyan);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

#contact-form input, #contact-form textarea {
    background: #151515;
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 5px;
    color: var(--text-white);
    font-family: inherit;
    width: 100%;
    transition: var(--transition-standard);
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-bottom a:hover {
    color: var(--primary-cyan);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .mobile-menu-btn { 
        display: flex; 
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
    }

    .nav-links .btn-primary {
        width: 80%;
        text-align: center;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    
    .about-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content p {
        margin: 0 auto 3rem auto;
    }
    
    .stats {
        justify-content: center;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    .about {
        padding: 6rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .logo-3d { font-size: 2.2rem; }
    .logo-lugano { font-size: 1.6rem; letter-spacing: 2px; }
    .logo-top-row { gap: 8px; }
    .logo-subtitle { font-size: 0.5rem; letter-spacing: 1px; }
}
