:root {
    --primary-color: #0d47a1; /* Blu scuro */
    --secondary-color: #1976d2; /* Blu più chiaro */
    --accent-color: #42a5f5; /* Blu accento */
    --text-color: #333;
    --bg-color: #f4f7f9;
    --white-color: #ffffff;
    --heading-font: 'Helvetica Neue', 'Arial', sans-serif;
    --body-font: 'Helvetica Neue', 'Arial', sans-serif;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: var(--white-color);
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}



header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--heading-font);
    display: flex;
    align-items: center;
    gap: 10px; /* spazio tra logo e testo */
}

#logo img {
  height: 50px;
  width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

nav a.active {
  color: var(--accent-color);
  font-weight: 600;
}

.nav-separator {
  width: 1px;
  height: 24px;
  background-color: #ccc;
  margin: 0 15px;
}

.nav-knowledge a {
  color: #003366;
  font-weight: normal;
  font-style: italic;
}

.nav-knowledge a:hover {
  text-decoration: underline;
}

.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-family: var(--heading-font);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

section {
    padding: 80px 0;
    scroll-margin-top: 120px;
}

section:nth-of-type(odd) {
    background: var(--white-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--heading-font);
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#profilo .content {
    display: flex;
    align-items: center;
    gap: 50px;
}

#profilo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#metodo .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step h3 {
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-top: 15px;
}

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
}

.report-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.report-preview img {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.report-preview figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

#servizi ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

#servizi ul li {
    background: var(--white-color);
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#servizi ul li:hover {
    transform: translateX(5px);
}

#cta {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

#cta .section-title, #cta .section-subtitle {
    color: var(--white-color);
}

#cta .btn {
    background: var(--white-color);
    color: var(--primary-color);
}

#cta .btn:hover {
    background: #eee;
}

footer {
    background: #263238;
    color: var(--white-color);
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    #profilo .content {
        flex-direction: column;
        text-align: center;
    }
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
}

html {
  scroll-behavior: smooth;
}

body.knowledge {
  background-color: #eef0f2;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23dce2e8' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.knowledge-hero {
  background: none;
  padding: 80px 0 60px 0;
  text-align: center;
}

.knowledge-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.knowledge-categories {
  padding: 60px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.category-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.category-card h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #003366;
}

.category-card ul {
  list-style: none;
  padding: 0;
}

.category-card li {
  margin-bottom: 8px;
}

.category-card a {
  text-decoration: none;
  color: #333;
}

.category-card a:hover {
  text-decoration: underline;
}

.article-content {
  background-color: #f4f7f9;
  padding: 60px 0;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.article-content .container {
  max-width: 820px;
  line-height: 1.75;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  color: #333;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #003366;
  border-left: none;
  padding-left: 0;
  border-bottom: 2px solid #e9eef3;
  padding-bottom: 10px;
  font-family: var(--heading-font);
}

.knowledge-hero .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-top: 8px;
  text-align: left;
}

.knowledge-hero .category {
  font-size: 0.9rem;
  color: #777;
  margin-top: 10px;
  font-style: italic;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 20px 20px;
}

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

.article-content strong {
  color: #000;
}

.article-content em {
  color: #444;
  font-style: italic;
}

.article-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
}

.article-footer a {
  color: #003366;
  text-decoration: none;
}

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

form {
  max-width: 600px;   /* puoi usare 500–700px */
  margin: 0 auto;     /* centra il form */
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

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

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

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

form .btn {
  display: block;
  margin: 0.5rem auto 0;
}

