/* ============================================================
HERO HOME — Technical SEO & SEO Product Management
GeneratePress + Gutenberg (blocchi core)

Palette:

- verde brand: #2C6821
- verde scuro: #173D12
- verde medio: #3F8A31
- verde chiaro: #6EAA5F
- pattern decorativo: #CDE8C7
============================================================ */

/* ===== CONTENITORE ===== */

.hero-home {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
}

/* ===== CONTENUTO ===== */

.hero-home__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== EYEBROW / SOTTOTITOLO ===== */

.hero-eyebrow {
  color: #2C6821;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

/* ===== TITOLO CON GRADIENTE ===== */

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-bottom: 1rem;

  background: linear-gradient(
    95deg,
    #173D12 0%,
    #2C6821 45%,
    #3F8A31 75%,
    #6EAA5F 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== PARAGRAFO INTRODUTTIVO ===== */

.hero-lead {
  color: #000000;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 2.25rem;
}

/* ===== PULSANTI ===== */

.hero-home .wp-block-buttons {
  gap: 1rem;
  margin-bottom: 0;
}

.hero-home .wp-block-button .wp-block-button__link {
  padding: 1rem 2.2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* ===== BOTTONE PIENO ===== */

.hero-home .btn-primary .wp-block-button__link {
  background: linear-gradient(
    90deg,
    #2C6821 0%,
    #3F8A31 100%
  );

  color: #ffffff;
  border: 2px solid transparent;
}

.hero-home .btn-primary .wp-block-button__link:hover {
  background: linear-gradient(
    90deg,
    #3F8A31 0%,
    #2C6821 100%
  );

  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 104, 33, 0.30);
}

/* ===== BOTTONE OUTLINE ===== */

.hero-home .btn-outline .wp-block-button__link {
  background: transparent;
  color: #2C6821;
  border: 2px solid #2C6821;
}

.hero-home .btn-outline .wp-block-button__link:hover {
  background: #2C6821;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== ACCESSIBILITÀ / FOCUS ===== */

.hero-home .wp-block-button .wp-block-button__link:focus-visible {
  outline: 3px solid rgba(44, 104, 33, 0.35);
  outline-offset: 3px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

  .hero-home {
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    padding: 3rem 20px 4rem;
  }

  .hero-home__inner {
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
  }

  .hero-title,
  .hero-lead {
    width: 100%;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 3.8rem);
  }

  .hero-home .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home .wp-block-button {
    width: 100%;
  }

  .hero-home .wp-block-button .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

}

/* ============================================================
COMPETENZE — Chip cloud
============================================================ */

/* ===== CONTENITORE ===== */

.skills-section {
  width: 100%;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: #ffffff;
}

.skills-section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===== EYEBROW ===== */

.skills-eyebrow {
  margin: 0 0 1rem;
  color: #2C6821;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
}

/* ===== TITOLO ===== */

.skills-title {
  margin: 0 0 2.5rem;
  color: #173D12;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ===== LISTA ===== */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  width: 100%;
  margin: 0;
  padding: 0;

  list-style: none;
}

/* ===== CHIP ===== */

.skills-list li {
  display: inline-flex;
  align-items: center;

  margin: 0;
  padding: 14px 20px;

  border: 1px solid #2C6821;
  border-radius: 8px;

  background: #ffffff;
  color: #2C6821;

  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.2;

  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

/* ===== HOVER ===== */

.skills-list li:hover {
  background: #2C6821;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .skills-section {
    padding: 4rem 20px;
  }

  .skills-section__inner {
    max-width: none;
    padding: 0;
  }

  .skills-list {
    gap: 8px;
  }

  .skills-list li {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

}

/* ===== RIDUZIONE ANIMAZIONI ===== */

@media (prefers-reduced-motion: reduce) {

  .hero-home .wp-block-button .wp-block-button__link,
  .skills-list li {
    transition: none;
  }

}

/* ===== TITOLI DI SEZIONE ===== */

.section-title {
    line-height: 1.1;
    padding-bottom: 0.1em;
    font-weight: 700;

    background: linear-gradient(
        100deg,
        #123b16 0%,
        #28651e 30%,
        #5aaa3d 60%,
        #b2e58b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (max-width: 768px) {
    .section-title {
        line-height: 1.05;
    }
}

/* ===== TITOLI H3 DELLA GRIGLIA ===== */

.entry-content h3 a {
    color: #111;
    text-decoration: none;
    background-image: linear-gradient(#8FD66A, #8FD66A);
    background-repeat: no-repeat;
    background-size: 100% 6px;
    background-position: 0 90%;
    transition:
        background-size 0.3s ease,
        color 0.2s ease;
}

.entry-content h3 a:hover {
    color: #fff;
    background-image: linear-gradient(#174d1d, #174d1d);
    background-size: 100% 100%;
}