/**
 * Homepage — layout pulito (no pin scroll)
 */
.page-home {
  --section-pad: clamp(48px, 7vw, 88px);
}

.page-home .wrap {
  max-width: 1140px;
}

/* Hero — forte ma non fullscreen forzato */
.page-home .hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 20px clamp(40px, 6vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .hero .wrap {
  max-width: 980px;
}

.page-home .hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0.2rem 0 0;
}

.page-home .hero .subtitle {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  line-height: 1.55;
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.page-home .hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}

.page-home .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

/* Sezioni */
.page-home .home-section {
  padding: var(--section-pad) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-section--alt {
  background: rgba(255, 255, 255, 0.02);
}

.page-home .home-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.page-home .home-section__intro {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
  line-height: 1.65;
  font-size: 1rem;
}

.page-home .card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.page-home .card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.page-home .card .card__cta {
  margin-top: 12px;
}

.page-home .section-links {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .section-links a {
  color: var(--accent-bright);
}

.page-home .section-contatti .section-contatti__intro {
  max-width: 52rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

/* Certificazioni */
.cert-block {
  margin-top: 2rem;
}

.cert-block:first-of-type {
  margin-top: 0;
}

.cert-block--featured {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.cert-block__head {
  margin-bottom: 1.1rem;
}

.cert-block__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cert-block__desc {
  margin: 0;
  max-width: 720px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.cert-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cert-badge-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

a.cert-badge-item:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.cert-badge-item__figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.cert-badge-item__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 180/260;
  object-fit: cover;
}

.cert-badge-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-badge-item__title {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.cert-badge-item__code {
  font-size: 0.72rem;
  color: #c4b5fd;
}

.cert-badge-item__issuer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
}

.cert-badge-item__date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.cert-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cert-panel-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-panel {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
}

a.cert-panel__head:hover {
  text-decoration: none;
  color: #7dd3fc;
}

.cert-panel__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.cert-panel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.cert-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-panel__list li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.cert-panel__list li:last-child {
  border-bottom: 0;
}

.cert-panel__list a {
  color: inherit;
  text-decoration: none;
}

.cert-panel__list a:hover {
  color: #7dd3fc;
}

.cert-panel__date {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .cert-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cert-panel-grid,
  .cert-panel-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cert-badge-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin: 0 auto;
  }
}
