/* =========================
   BACKGROUND GRID + GLOW
========================= */

.page-hero,
.section.section-light,
.reviews-embed-section,
.cta-section {
  position: relative;
  background: radial-gradient(
      circle at center,
      rgba(20, 40, 90, 0.35) 0%,
      rgba(10, 20, 45, 0.9) 60%,
      #050b1a 100%
    ),
    #050b1a;
  overflow: hidden;
}

/* griglia */
.page-hero::before,
.section.section-light::before,
.reviews-embed-section::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);

  background-size: 40px 40px;
  pointer-events: none;
}

/* glow centrale */
.page-hero::after,
.section.section-light::after,
.reviews-embed-section::after,
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(31, 79, 255, 0.25) 0%,
    rgba(31, 79, 255, 0.1) 30%,
    transparent 70%
  );

  pointer-events: none;
}

/* =========================
   TESTI SU SFONDO SCURO
========================= */

.page-hero h1,
.page-hero p,
.section.section-light h2,
.section.section-light p,
.reviews-embed-section h2,
.reviews-embed-section p,
.cta-section h2,
.cta-section p {
  color: #ffffff;
}

.section-tag {
  color: #ffd54a;
}

/* =========================
   CARD (adattamento scuro)
========================= */

.about-card,
.premium-feature-card,
.reviews-embed-box,
.cta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* testo secondario */
.about-copy p,
.info-item span,
.premium-feature-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* titoli card */
.premium-feature-card h3,
.about-card h3 {
  color: #ffffff;
}

/* =========================
   CTA migliorata
========================= */

.cta-box {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

/* =========================
   HOVER LEGGERO (premium)
========================= */

.premium-feature-card:hover,
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================
   CERTIFICATI
========================= */

.certificazioni-copy {
  max-width: 700px;
}

.certificati-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.certificato-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: center;
  transition: all 0.25s ease;
}

.certificato-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.certificato-card p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.certificato-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================
   ABOUT SECTION DARK FIX
========================= */

.about-grid {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* 🔥 QUESTO È LA CHIAVE */
}

.about-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.certificati-wrap {
  margin-top: 2rem;
}

/* testo */
.about-copy h2 {
  color: #ffffff;
}

.about-copy p {
  color: rgba(255, 255, 255, 0.85);
}

/* card laterale */
.about-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
}


.certificato-card img {
  width: 100%;
  max-width: 220px;   /* 👈 dimensione controllata */
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

/* opzionale: card più compatta */
.certificato-card {
  padding: 1rem;
}

.certificato-card p {
  color: rgba(255, 255, 255, 0.8);
}


.certificato-card:hover img {
  transform: scale(1.03);
  transition: 0.3s ease;
}

.about-card-tall {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔥 distribuisce bene i contenuti */
}

.about-card .info-item strong {
  color: #ffd54a;
  font-weight: 800;
  display: block;
  margin-bottom: 0.35rem;
}

.about-card .info-item span {
  color: rgba(255, 255, 255, 0.84);
}

.about-card .info-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-card .info-item:first-of-type {
  border-top: 0;
  padding-top: 0.6rem;
}

.about-card h3 {
  color: #ffffff;
  margin-bottom: 1.1rem;
}
/* titolo con parola evidenziata */
.text-gradient {
  background: linear-gradient(90deg, #ff9a2f 0%, #ffd54a 55%, #fff0a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chi-siamo-sectors-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.sector-card {
  text-align: left;
}

.sector-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd54a 0%, #f3b600 100%);
  color: #0c1530;
  font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(255, 213, 74, 0.22);
}

.sector-card h3 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.sector-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .chi-siamo-sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* Dicono di noi arancione */
.reviews-title-accent {
  color: #ff8a1f !important;
}


/* responsive */
@media (max-width: 900px) {
  .chi-siamo-sectors-grid {
    grid-template-columns: 1fr;
  }
}

.garanzie-section {
  margin: 3.5rem 0 4rem;
}

.garanzie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.garanzia-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.garanzia-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.garanzia-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.garanzia-card h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd54a;
}

.garanzia-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .garanzie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .garanzie-grid {
    grid-template-columns: 1fr;
  }
}
.section-tight-bottom {
  padding-bottom: 40px; /* prima era tipo 80–100px */
}

.servizi-mappa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.section-head-left {
  text-align: left;
  max-width: none;
}

.section-head-left h2,
.section-head-left p,
.section-head-left .section-tag {
  text-align: left;
}

.servizi-mappa-left .chi-siamo-sectors-grid {
  margin-top: 2rem;
}

.servizi-mappa-right {
  display: flex;
}

.mappa-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.mappa-card-head {
  padding: 1.4rem 1.4rem 1rem;
}

.mappa-card-head h3 {
  margin: 0.2rem 0 0.35rem;
  color: #ffffff;
  font-size: 1.4rem;
}

.mappa-card-head p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.mappa-embed {
  width: 100%;
  height: 260px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mappa-card-footer {
  padding: 1rem 1.4rem 1.4rem;
}

@media (max-width: 980px) {
  .servizi-mappa-layout {
    grid-template-columns: 1fr;
  }

  .mappa-embed {
    height: 360px;
  }
}