/* ======== RESET E VARIABILI GLOBALI ======== */
:root {
    --viola-lavanda: #8c52ff;
    --azzurro-acqua: #5ce1e6;
    --bianco-puro: #ffffff;
    --grigio-lavanda: #eae6f8;
    --blu-notte: #1c1a3f;
    --font-principale: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principale);
    color: var(--blu-notte);
    line-height: 1.7;
    background-color: var(--bianco-puro);
    overflow-x: hidden;
}

/* ======== UTILITIES ======== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; color: var(--blu-notte); }
h2 { font-size: 2.5rem; color: var(--viola-lavanda); text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1rem; }
section { padding: 80px 0; }
a { text-decoration: none; color: var(--viola-lavanda); }

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -1rem auto 3rem;
    font-size: 1.1rem;
}

/* ======== PULSANTI (CTA) ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--viola-lavanda);
    color: var(--bianco-puro);
    border-color: var(--viola-lavanda);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--viola-lavanda);
}
.btn-secondary {
    background-color: transparent;
    color: var(--blu-notte);
    border-color: var(--blu-notte);
}
.btn-secondary:hover {
    background-color: var(--blu-notte);
    color: var(--bianco-puro);
}
.btn-header {
    background-color: var(--viola-lavanda);
    color: var(--bianco-puro);
}
.btn-header:hover {
    transform: scale(1.05);
}

/* ======== HEADER ======== */
header {
    background: var(--bianco-puro);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img { height: 45px; width: auto; }
.logo span { font-size: 1.5rem; font-weight: 700; color: var(--blu-notte); }
header nav ul { list-style: none; display: flex; gap: 2rem; }
header nav a { color: var(--blu-notte); font-weight: 600; position: relative; }
header nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--azzurro-acqua);
    transition: width 0.3s ease;
}
header nav a:hover::after { width: 100%; }

/* ======== HERO SECTION ======== */
#hero {
    background-color: var(--grigio-lavanda); min-height: calc(100vh - 85px);
    display: flex; align-items: center; text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-tagline {
    font-size: 1.2rem; font-weight: 600; color: var(--viola-lavanda);
    margin: 1rem 0 0.5rem;
}
.hero-content p { font-size: 1.1rem; color: var(--blu-notte); margin: 1.5rem 0 2.5rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }

/* ======== SEZIONE TARGET ======== */
#target { background-color: var(--bianco-puro); }
.target-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.target-card {
    text-align: center; padding: 2rem; border: 1px solid #ddd;
    border-radius: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.target-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.target-card h3 { color: var(--viola-lavanda); margin-bottom: 1rem; text-transform: capitalize; }

/* ======== SEZIONE SERVIZI ======== */
#services { background-color: var(--grigio-lavanda); }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}
.service-card {
    background: var(--bianco-puro); padding: 2rem; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card i { font-size: 2.5rem; color: var(--azzurro-acqua); margin-bottom: 1rem; }
.service-card h4 { font-size: 1.3rem; color: var(--blu-notte); margin-bottom: 0.5rem; text-transform: capitalize; }

/* ======== SEZIONE PORTFOLIO ======== */
#portfolio { background-color: var(--bianco-puro); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(28, 26, 63, 0.9);
    color: var(--bianco-puro);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 1rem;
    opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay h3 { color: var(--bianco-puro); margin-bottom: 0.5rem; }
.portfolio-overlay p { color: var(--azzurro-acqua); margin-bottom: 0; font-weight: 600; text-transform: capitalize; }

/* ======== SEZIONE APPROCCIO ======== */
#approach { background-color: var(--blu-notte); color: var(--bianco-puro); text-align: center; }
#approach h2 { color: var(--azzurro-acqua); }
#approach p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; }
#approach strong { color: var(--viola-lavanda); }

/* ======== SEZIONE CHI SIAMO ======== */
#about {
    background-color: var(--bianco-puro);
}
.about-container-no-photo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}
.about-graphic {
    background-color: var(--grigio-lavanda);
    color: var(--blu-notte);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--azzurro-acqua);
}
.about-graphic h2 {
    color: var(--viola-lavanda);
    font-size: 2.5rem;
    line-height: 1.3;
}
.about-text h3 {
    font-size: 2.5rem;
    color: var(--viola-lavanda);
    margin-bottom: 1.5rem;
}
.social-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}
.social-link i {
    margin-right: 0.5rem;
    color: var(--viola-lavanda);
}

/* ======== SEZIONE FORM DI CONTATTO ======== */
#contact { background-color: var(--grigio-lavanda); }
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px;
    font-family: var(--font-principale); font-size: 1rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--viola-lavanda);
}
.contact-form button { width: 100%; margin-top: 1rem; padding: 15px; }

/* ======== FOOTER ======== */
footer { background-color: var(--blu-notte); color: var(--grigio-lavanda); padding: 40px 0 20px; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.logo-footer { display: flex; align-items: center; gap: 10px; }
.logo-footer img { height: 50px; width: auto; }
.logo-footer span { font-size: 1.5rem; font-weight: 700; color: var(--grigio-lavanda); }
.footer-social a { color: var(--bianco-puro); font-size: 1.5rem; margin-left: 1rem; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--azzurro-acqua); }
.footer-bottom { text-align: center; border-top: 1px solid #4a476a; padding-top: 1rem; font-size: 0.9rem; }
.footer-bottom a { color: var(--grigio-lavanda); text-decoration: underline; }

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 2rem; }
    header .container { flex-direction: column; gap: 1rem; }
    header nav ul { gap: 1.5rem; }
    .target-grid, .portfolio-grid, .services-grid { 
        grid-template-columns: 1fr; 
    }
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
    .form-group { flex-direction: column; }
    .about-container-no-photo {
        grid-template-columns: 1fr;
    }
    .about-graphic h2 {
        font-size: 2rem;
    }
    .about-text h3 {
        font-size: 2rem;
        text-align: center;
        margin-top: 2rem;
    }
    .portfolio-item .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(28, 26, 63, 0.95) 0%, rgba(28, 26, 63, 0) 70%);
        justify-content: flex-end;
        padding: 1.5rem 1rem;
    }
    .portfolio-item img {
        transform: none !important;
    }
    .portfolio-overlay p {
        margin-bottom: 0;
    }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}