/*
Theme Name: Sinergie Progetti Theme
Description: Tema personalizzato per Sinergie Progetti srl
Version: 2.0
Author: Webcom Consulting
*/

:root {
    --primary-blue: #0066CC;
    --dark-blue: #003366;
    --accent-green: #00CC00;
    --accent-yellow: #FFCC00;
    --accent-red: #CC0000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5FAFD;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-img {
    height: 55px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .btn-area-clienti a {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
}

.main-nav .btn-area-clienti a:hover {
    background: var(--dark-blue);
}

.main-nav .btn-area-clienti a::after {
    display: none;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-img {
        height: 45px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #001a33 100%);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-green);
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--white);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #E8F4FC;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Buttons */
.sp-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sp-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.sp-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.sp-btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Sections */
.sp-section {
    padding: 5rem 5%;
}

.sp-section-light {
    background: var(--bg-light);
}

.sp-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.sp-section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Page Hero */
.sp-page-hero {
    background: linear-gradient(135deg, #0066CC, #004080);
    padding: 8rem 5% 4rem;
    text-align: center;
    color: var(--white);
}

.sp-page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.sp-page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
