/* ================================================
   STUDIO LEGALE TIRELLI - DARK PROFESSIONAL THEME
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background-color: #0a0a0a;
    margin-top: 80px;
}

/* =============== HEADER =============== */
header {
    background: rgba(10, 10, 10, 0.95);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
}

.logo i {
    margin-right: 0.8rem;
    color: #d4af37;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* =============== HERO SECTION =============== */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%), 
                radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23000000" width="1200" height="800"/><path fill="%23111111" opacity="0.3" d="M0 400l50-16.7c50-16.6 150-50 250-50s200 33.4 250 50l50 16.7v400H0z"/></svg>');
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

/* =============== ABOUT SECTION =============== */
.about {
    padding: 120px 2rem;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
    margin-top: 5rem;
}

.about-image {
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    background: linear-gradient(45deg, #d4af37, transparent);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 1px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    text-align: justify;
    line-height: 1.9;
    color: #cccccc;
}

/* =============== SERVICES SECTION =============== */
.services {
    padding: 120px 2rem;
    background: #0a0a0a;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 3rem 2.5rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 80px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card i {
    font-size: 3.5rem;
    color: #d4af37;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

.service-card p {
    line-height: 1.9;
    color: #cccccc;
    font-size: 1rem;
}

/* =============== CONTACT SECTION =============== */
.contact {
    padding: 120px 2rem;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.6rem;
    color: #d4af37;
    margin-right: 1.5rem;
    width: 35px;
    margin-top: 0.2rem;
}

.contact-item span {
    color: #e8e8e8;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    background: rgba(0,0,0,0.4);
    padding: 3rem;
    border-radius: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: #d4af37;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 300;
    color: #e8e8e8;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    color: #e8e8e8;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* =============== FOOTER =============== */
footer {
    background: #000000;
    color: #888;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .about-image::before {
        width: 280px;
        height: 280px;
    }

    .about-image img {
        width: 260px;
        height: 260px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 0.9rem;
    }

    .services {
        padding: 80px 1rem;
    }

    .about,
    .contact {
        padding: 80px 1rem;
    }
}