/* Home: sfondo pagina coerente con il hero (niente “banda bianca” dietro header trasparente) */
body.page-template-template-pages-page-home-php,
body.page-template-template-pages-page-home {
  background-color: var(--beige);
}

/* Home custom layout — allineato a variabili tema (Outfit, --red, --main, --beige) */
.page-home-new {
  font-family: var(--fontFamily);
  color: var(--nero);
  line-height: 1.6;
  /* Nessun padding-top qui: evita la fascia bianca sotto l’header floating */
  padding-top: 0;
  margin: 0 clamp(0.75rem, 2vw, 1.25rem) 0;
  background: var(--bianco);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.06);
  overflow: clip;
}

.page-home-new .ph-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-home-new a:not(.btn) {
  text-decoration: none;
  color: inherit;
}

.page-home-new img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ----- Hero ----- */
.page-home-new .hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Stesso fondo del .hero-bg: così il padding-top non mostra il bianco del main */
  background: linear-gradient(
    135deg,
    var(--beige) 0%,
    #f8f6f2 45%,
    var(--bianco) 100%
  );
  /* Spazio per il toggle fisso */
  padding-top: clamp(72px, 12vw, 104px);
}

.page-home-new .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--beige) 0%,
    #f8f6f2 45%,
    var(--bianco) 100%
  );
}

.page-home-new .hero-blob-1 {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 288px;
  height: 288px;
  background: rgba(14, 77, 128, 0.12);
  border-radius: 50%;
  filter: blur(60px);
}

.page-home-new .hero-blob-2 {
  position: absolute;
  bottom: 80px;
  left: 40px;
  width: 384px;
  height: 384px;
  background: rgba(255, 76, 89, 0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.page-home-new .hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0;
  max-width: 900px;
}

.page-home-new .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(14, 77, 128, 0.08);
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.page-home-new .hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: ph-pulse 2s infinite;
}

@keyframes ph-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.page-home-new .hero-badge-text {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--main);
}

.page-home-new .hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .page-home-new .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .page-home-new .hero h1 {
    font-size: 4rem;
  }
}

.page-home-new .hero h1 span {
  display: block;
  margin-top: 0.5rem;
  color: var(--main);
  font-weight: 500;
}

.page-home-new .hero-description {
  font-size: 1.6rem;
  color: #333;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .page-home-new .hero-description {
    font-size: 1.8rem;
  }
}

.page-home-new .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .page-home-new .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.page-home-new .scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: ph-bounce 2s infinite;
}

@keyframes ph-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.page-home-new .scroll-indicator span {
  font-size: 1.2rem;
  color: #666;
}

.page-home-new .scroll-indicator-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.page-home-new .scroll-indicator-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: ph-pulse 2s infinite;
}

/* ----- Servizi ----- */
.page-home-new .services {
  padding: 6rem 0;
  background: var(--bianco);
}

.page-home-new .section-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-home-new .section-title {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-home-new .section-title {
    font-size: 2.6rem;
  }
}

.page-home-new .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-home-new .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-home-new .service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--bianco);
  border: 1px solid rgba(112, 112, 112, 0.35);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.page-home-new .service-card:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(14, 77, 128, 0.08);
}

.page-home-new .service-card-image {
  position: relative;
  height: 256px;
  overflow: hidden;
}

.page-home-new .service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.page-home-new .service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.page-home-new .service-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bianco) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
}

.page-home-new .service-card-content {
  position: relative;
  padding: 1.5rem;
}

.page-home-new .service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-home-new .service-card-info {
  flex: 1;
}

.page-home-new .service-card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.page-home-new .service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 76, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.page-home-new .service-card-icon svg {
  width: 20px;
  height: 20px;
}

.page-home-new .service-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  transition: color 0.3s;
}

.page-home-new .service-card:hover h3 {
  color: var(--main);
}

.page-home-new .service-card p {
  color: #444;
  line-height: 1.6;
  font-size: 1.4rem;
}

.page-home-new .service-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bordo);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.page-home-new .service-card-arrow svg {
  width: 16px;
  height: 16px;
  color: #666;
  transition: all 0.3s ease;
}

.page-home-new .service-card:hover .service-card-arrow {
  background: var(--red);
  border-color: var(--red);
}

.page-home-new .service-card:hover .service-card-arrow svg {
  color: var(--bianco);
  transform: translate(2px, -2px);
}

/* ----- Chi siamo / stats ----- */
.page-home-new .about {
  padding: 6rem 0;
  background: rgba(225, 219, 207, 0.35);
}

.page-home-new .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-home-new .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home-new .about-content h2 {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-home-new .about-content h2 {
    font-size: 2.6rem;
  }
}

.page-home-new .about-content p {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.7;
}

.page-home-new .about-content p:last-of-type {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.page-home-new .about-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.page-home-new .features-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .page-home-new .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-home-new .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-home-new .feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

.page-home-new .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.page-home-new .stat-card {
  background: var(--bianco);
  border-radius: 1rem;
  border: 1px solid rgba(112, 112, 112, 0.25);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.page-home-new .stat-card:hover {
  border-color: var(--main);
}

.page-home-new .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main);
}

@media (min-width: 768px) {
  .page-home-new .stat-value {
    font-size: 3rem;
  }
}

.page-home-new .stat-label {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  color: #555;
}
