/* --- VARIABLES & BASE --- */
:root {
  --primary-color: #0050b3;
  --secondary-color: #007bff;
  --accent-color: #ff6f61;
  --background-light: #f7f9fc;
  --background-white: #ffffff;
  --text-color: #333;
  --text-light: #555;
  --white-color: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky header */
}

body {
  font-family: var(--font-family);
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

h1, h2, h3, h4 { 
  color: var(--primary-color); 
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 2.8rem; text-align: center; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1rem; }
p.subtitle { max-width: 700px; margin: 1rem auto 2.5rem; font-size: 1.1rem; text-align: center; color: var(--text-light); }
p.section-intro { max-width: 700px; text-align: center; margin: 0 auto 3rem; color: var(--text-light); font-size: 1.1rem; }

/* --- HEADER --- */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--primary-color);
}
.logo img { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 0.5rem; }
.main-nav a {
  margin: 0 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem;
  transition: color 0.3s ease;
  border-radius: 6px;
}
.main-nav a:not(.btn):hover {
  color: var(--primary-color);
  background-color: var(--background-light);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-primary-solid { background: var(--accent-color); color: white; border-color: var(--accent-color); }
.btn-primary-solid:hover { background: #e65a50; border-color: #e65a50; transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--white-color); border-color: var(--white-color); }
.btn-secondary:hover { background: var(--white-color); color: var(--primary-color); }

.btn.disabled { background-color: #a0a0a0; cursor: not-allowed; pointer-events: none; opacity: 0.7; }

/* --- HERO --- */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 1rem;
}
.hero h1, .hero .subtitle { color: white; }
.hero .subtitle { color: rgba(255, 255, 255, 0.85); }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-buttons { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-trust-bar {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.hero-trust-bar span {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* --- SOLUTIONS & SERVICES SECTION --- */
.solutions-section { background-color: var(--background-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 1.3rem; margin-top: 0; }
.card p { flex-grow: 1; margin-bottom: 1.5rem; color: var(--text-light); }
.card .card-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- WHY US SECTION --- */
.why-us-section { padding: 4rem 1rem; }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.why-us-card { text-align: center; }
.stat-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}
.why-us-card h3 { font-size: 1.3rem; margin: 0.5rem 0; }
.why-us-card p { color: var(--text-light); }

/* --- DASHBOARD & TESTIMONIALS (Stili originali OK) --- */
.dashboard-preview { background: var(--background-light); }
.dashboard-iframe-container {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 900px;
}
.dashboard-iframe-container iframe { width: 100%; height: 450px; border: 0; display: block; }

.testimonials { padding: 5rem 0; }
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}
.logos-container img {
  height: 40px;
  opacity: 0.7;
  filter: grayscale(80%);
  transition: all 0.3s;
}
.logos-container img:hover { opacity: 1; filter: none; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  background: var(--background-light);
  border-left: 5px solid var(--secondary-color);
}
.testimonial-card blockquote { font-style: italic; margin: 0 0 1rem 0; font-size: 1.1rem; }
.testimonial-card cite { font-weight: 600; color: var(--primary-color); font-style: normal; }


/* --- CTA SECTION --- */
.cta-section { background: var(--primary-color); color: white; }
.cta-block {
  background: var(--white-color);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
}
.cta-block h3 { font-size: 1.8rem; color: var(--primary-color); }
.cta-block p { color: var(--text-light); margin: 1rem 0 2rem; }

@media (min-width: 768px) {
  .cta-block { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .cta-block p { margin: 0; }
}

/* --- FOOTER --- */
.main-footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 2.5rem 1rem;
}
.main-footer a { color: white; text-decoration: none; transition: color 0.3s; }
.main-footer a:hover { color: var(--secondary-color); }
.footer-links { margin: 1rem 0; }
.footer-links a { margin: 0 0.5rem; }
.social-links { margin: 1rem 0; }

/* --- PAGE-SPECIFIC STYLES (per Chi Siamo, Servizi) --- */
.page-header {
  background-color: var(--background-light);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}
.content-section {
    padding: 4rem 0;
}
.content-section .container.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 992px) {
  .content-section .container.grid-layout {
    grid-template-columns: 2fr 1fr;
  }
}
.content-section h2, .content-section h3 {
    text-align: left;
}
.highlight-box {
  background-color: var(--background-light);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-style: italic;
}
.highlight-box p {
  color: var(--primary-color);
}
.team-sidebar .member-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.team-sidebar h4 {
    margin: 0 0 0.5rem 0;
    text-align: center;
}
.team-sidebar .role {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; } /* Semplificazione per il tutorial, si può implementare un menu burger */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
