/* RESET ARCHITETTURALE & TIPOGRAFIA CORPORATIVA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-main: #050508;
    --orange-primary: #FF8C00;
    --gold-accent: #D4AF37;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-background: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(16px);
}

body.premium-dark {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.gold-text { color: var(--gold-accent); }
.green-text { color: #10B981; }
.gray-text { color: #64748B; }

/* SFONDO DINAMICO CON LOGO CHE SFUMA A METÀ SITO */
.background-logo-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1200px;
    background-image: url('img/kayroslabs.png'); /* <--- MODIFICATO QUI */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 80% auto;
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 85%);
}

/* NAVBAR STRUTTURATA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

.btn-nav {
    background: linear-gradient(135deg, var(--orange-primary), var(--gold-accent));
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* HERO SECTION PRIVATA DA FRONZOLI GAMING TRASH */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.studio-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-accent);
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: inline-block;
    border-radius: 30px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* TERMINALE DI SVILUPPO IN VETRO SATINATO */
.terminal-glass {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto 40px auto;
    text-align: left;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.terminal-buttons {
    display: flex;
    gap: 7px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background-color: #EF4444; }
.yellow { background-color: #F59E0B; }
.green { background-color: #10B981; }

.terminal-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 15px;
}

.terminal-body {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cursor { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* BOTTONI PREMIUM */
.btn-primary {
    background: linear-gradient(135deg, var(--orange-primary), var(--gold-accent));
    color: #050508;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.25);
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

/* METRICHE AZIENDALI */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 35px 6%;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* TICKER ORIZZONTALE */
.reviews-ticker {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.ticker-wrap { width: 100%; overflow: hidden; }
.ticker-content { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-content span { padding: 0 35px; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* STRUTTURA DELLE SEZIONI */
.section-header {
    text-align: center;
    margin-top: 90px;
    margin-bottom: 45px;
}

.sub-title {
    color: var(--orange-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 5px;
}

/* SEZIONE SERVIZI GLASSMORPHISM */
.services { padding: 40px 6%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.service-card {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(255, 140, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: auto; /* Spinge il badge in fondo */
    padding-bottom: 25px;
}

.badge {
    background: rgba(255, 140, 0, 0.07);
    color: var(--orange-primary);
    border: 1px solid rgba(255, 140, 0, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* SEZIONE INFORMAZIONI STUDIO (PORTFOLIO BLANK) */
.portfolio { padding: 40px 6%; }

.full-width-portfolio {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-content h2 { margin-bottom: 15px; font-size: 1.6rem; }
.portfolio-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; max-width: 800px; margin: 0 auto 30px auto; }

.values-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: var(--gold-accent);
    font-weight: 500;
    font-size: 0.95rem;
}

/* FAQ ACCORDION INTERATTIVO */
.faq { padding: 40px 6%; }
.faq-container { max-width: 750px; margin: 0 auto; }
.faq-item { background: var(--glass-background); border: 1px solid var(--glass-border); margin-bottom: 12px; border-radius: 8px; overflow: hidden; }

.faq-question {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer { padding: 0 22px 20px 22px; max-height: 150px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--orange-primary); }

/* AREA CLIENTI MODERNA */
.client-zone { padding: 60px 6%; display: flex; justify-content: center; }

.glass-card.login-box {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
}

.login-box h2 { font-size: 1.4rem; margin-bottom: 10px; }
.login-box p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 25px; }

.login-box input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-white);
    margin-bottom: 15px;
    outline: none;
    font-size: 0.9rem;
}

.login-box input:focus { border-color: var(--gold-accent); }

/* CONTATTI & FORM PREVENTIVO */
.contact { padding: 40px 6% 100px 6%; }
.contact-container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-white);
    margin-bottom: 18px;
    outline: none;
    font-size: 0.9rem;
}

.contact-form select { color: var(--text-muted); background-color: #0d0d12; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--orange-primary); }

.contact-info-panel h3 { font-size: 1.3rem; margin-bottom: 15px; }
.contact-info-panel p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; line-height: 1.6; }

.professional-links { list-style: none; }
.professional-links li { margin-bottom: 14px; }
.professional-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.professional-links a:hover { color: var(--orange-primary); }

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .contact-container { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; gap: 20px; }
    .values-flex { flex-direction: column; gap: 15px; }
}