/* Stili CSS separati per il sito web Studio Legale Avv. Flavio Palumbo */

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

/* Variabili CSS */
:root {
    --color-primary: #C0C0C0;
    --color-text: #333333;
    --color-accent: #1A2A3A;
    --color-background: #FFFFFF;
    --color-gold: #CD9B1D;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Georgia', serif;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--color-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo img {
    height: 60px;
}

.logo-text {
    margin-left: 15px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-text);
    text-transform: lowercase;
    margin: 0;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-primary);
    text-transform: uppercase;
    margin: 0;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/studio-legale-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 100px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-gold);
}

/* Sections */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 300;
    color: var(--color-accent);
}

/* About Section */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.service-card p {
    margin-bottom: 20px;
}

.service-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
}

.service-card a:hover {
    color: var(--color-gold);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info .address {
    margin-bottom: 20px;
}

.map {
    margin-top: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.form-group textarea {
    height: 150px;
}

/* Footer */
footer {
    background-color: var(--color-accent);
    color: white;
    padding: 50px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 5%;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text h2 {
        font-size: 14px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 5%;
    }
    
    section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    section h2 {
        font-size: 24px;
    }
    
    .about-content h3,
    .contact-info h3,
    .contact-form h3 {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
}
