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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a202c;
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER / NAVBAR ================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

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

.header-brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.2px;
}

.brand-role {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.header-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: #0f172a;
}

.btn-primary-blue {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.6rem;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  display: inline-block;
}

.btn-primary-blue:hover {
  background-color: #1d4ed8;
}

/* ================= 1. HERO SECTION ================= */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-color: #0b1928;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #ffffff;
}

.hero-kicker {
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 2.2rem;
  color: #f1f5f9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.btn-hero-white {
  background-color: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  transition: background-color 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn-hero-white:hover {
  background-color: #f1f5f9;
}

.btn-hero-blue {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 2.2rem;
  border-radius: 6px;
  transition: background-color 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn-hero-blue:hover {
  background-color: #1d4ed8;
}

/* ================= 2. FASCIA UMANESIMO TOSCANO ================= */
.philosophy-section {
  background-color: #e5ece6; /* Sfumatura salvia/grigio chiarissima dello screenshot */
  padding: 3rem 2rem;
}

.philosophy-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 240px 1fr;
  align-items: center;
  gap: 2.5rem;
}

.philosophy-thumb-card {
  width: 190px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-intro p {
  font-style: italic;
  font-size: 1.05rem;
  color: #2d3748;
  line-height: 1.5;
}

.philosophy-quote blockquote {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #2d3748;
  padding-left: 1.5rem;
}

/* ================= 3. AREE DI COMPETENZA ================= */
.competencies-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5rem;
}

.competencies-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.competencies-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.4rem;
}

.competencies-header p {
  font-size: 0.95rem;
  color: #4b5563;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.competency-card {
  display: flex;
  flex-direction: column;
}

.competency-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.competency-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competency-info h3 {
  font-family: 'Playfair Display', serif; /* Font serif identico allo screenshot */
  font-size: 1.22rem;
  color: #111827;
  text-align: center;
  margin-bottom: 0.7rem;
  line-height: 1.35;
  font-weight: 600;
}

.competency-info p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  text-align: center;
}

/* ================= 4. NEWSLETTER STRIP ================= */
.newsletter-strip {
  background-color: #f3f5f8;
  padding: 4rem 1.5rem;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #e2e8f0;
}

.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.4rem;
}

.newsletter-sub {
  color: #2563eb;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  max-width: 580px;
  margin: 0 auto;
}

.input-with-icon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.mail-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1px solid #2563eb;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  background-color: #ffffff;
}

.btn-iscriviti {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-iscriviti:hover {
  background-color: #1d4ed8;
}

/* ================= 5. FOOTER ================= */
.main-footer {
  background-color: #ffffff;
  padding: 3.5rem 2rem 4rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1.6fr 1fr;
  gap: 3.5rem;
}

.col-brand .brand-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.brand-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  max-width: 360px;
}

.col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.2rem;
}

.col-contact p {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.col-contact a {
  color: #475569;
  text-decoration: none;
}

.col-contact a:hover {
  color: #0f172a;
}

.col-links ul {
  list-style: none;
}

.col-links li {
  margin-bottom: 0.6rem;
}

.col-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.col-links a:hover {
  color: #2563eb;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .philosophy-thumb-card {
    margin: 0 auto;
  }

  .philosophy-quote blockquote {
    padding-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .header-nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .competencies-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
  }
}