/* --- VARIABILI & RESET --- */
:root {
    --primary-blue: #0f2b46;
    --accent-orange: #ff6b35;
    --light-gray: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span { color: var(--accent-orange); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-blue);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-orange); }

.btn-cta {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-cta:hover { background-color: #e55a2b; }

/* --- HEADER PAGINA INTERNA --- */
.page-header { 
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a4d7a 100%);
    color: var(--white); 
    padding: 140px 0 80px; 
    text-align: center; 
}

.page-header h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- HERO SECTION (HOME) --- */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a4d7a 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23ffffff" fill-opacity="0.03" x="0" y="0" width="100" height="100"/><rect fill="%23ffffff" fill-opacity="0.03" x="200" y="100" width="100" height="100"/><rect fill="%23ffffff" fill-opacity="0.03" x="400" y="50" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-hero {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-hero:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* --- SERVICES SECTION (HOME) --- */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.service-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 40px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* --- SEZIONE STORIA (CHI SIAMO) --- */
.about-section { padding: 80px 0; }
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.about-text h2 { 
    font-size: 2.2rem; 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image { 
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 100%);
    height: 350px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary-blue);
    font-size: 5rem;
}

/* --- VALORI (CHI SIAMO) --- */
.values-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.value-card:hover { transform: translateY(-5px); }

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-card p {
    color: #666;
    line-height: 1.7;
}

/* --- SEZIONE TEAM (CHI SIAMO) --- */
.team-section { 
    padding: 80px 0; 
    text-align: center; 
}

.section-title { margin-bottom: 50px; }

.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.team-card { 
    background: var(--white); 
    padding: 35px 25px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-5px); }

.avatar { 
    width: 100px; 
    height: 100px; 
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    border-radius: 50%; 
    margin: 0 auto 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
}

.team-card h3 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.team-card .role {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.team-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- DETTAGLIO SERVIZI (SERVIZI) --- */
.service-detail { 
    padding: 80px 0; 
    border-bottom: 1px solid #eee; 
}

.service-detail:nth-child(even) { 
    background-color: var(--light-gray); 
}

.service-row { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
}

.service-row.reverse { 
    flex-direction: row-reverse; 
}

.service-info { flex: 1; }

.service-img { 
    flex: 1; 
    height: 320px; 
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 100%);
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary-blue); 
}

.service-info h2 { 
    font-size: 2.2rem; 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
}

.service-info p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.service-info ul { margin-top: 25px; }

.service-info ul li { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    color: #555;
}

.service-info ul li i { 
    color: var(--accent-orange);
    font-size: 1.1rem;
}

/* --- SEZIONE CONTATTI (CONTATTI) --- */
.contact-section { padding: 80px 0; }

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
}

.contact-info-box { 
    background-color: var(--light-gray); 
    padding: 50px 40px; 
    border-radius: 10px; 
}

.contact-info-box h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.info-item i { 
    color: var(--accent-orange); 
    font-size: 1.5rem; 
    margin-top: 5px; 
}

.info-item h4 { 
    color: var(--primary-blue); 
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p {
    color: #555;
    line-height: 1.7;
}

.contact-form-wrapper { padding: 20px 0; }

.contact-form-wrapper h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-wrapper > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-form { margin-top: 20px; }

.form-group { margin-bottom: 20px; }

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input, .form-group textarea, .form-group select { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    outline: none; 
    border-color: var(--accent-orange); 
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit { 
    background-color: var(--primary-blue); 
    color: var(--white); 
    border: none; 
    padding: 15px 40px; 
    border-radius: 5px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover { 
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.success-message { display: none; }

/* --- CTA SECTION (COMMON & LARGE) --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a4d7a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta-large {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul li { 
    margin-bottom: 10px;
}

.footer-col ul li a { 
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover { 
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-row, .service-row.reverse { flex-direction: column; }
}
