/* ═══════════════════════════════════════════
   AZIENDA.CSS — MacMark · Chi Siamo
═══════════════════════════════════════════ */

/* badge "Dal 2014 al tuo fianco" */
.badge {
  display: inline-block;
  background: linear-gradient(135deg,
      var(--orange-primary),
      var(--yellow-primary));
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(233, 83, 14, 0.3);
  width: fit-content;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

#heroAzienda {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 10%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* ── layout flex ── */
.hero-azienda__container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  padding: 2rem 0;
}

/* ── colonna testo ── */
.hero-azienda__content {
  flex: 1;
  animation: fadeInUp 0.7s ease both;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.hero-azienda__content h1 {
  font-family: "Lato", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
}

/* .highlight — classe usata nel PHP */
.highlight {
  background: linear-gradient(135deg, var(--orange-primary), var(--red-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.about-us-text {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.8;
  font-weight: 600;
  margin-bottom: 4rem;
}

/* ── stats nel hero ── */
.kpi-section {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.kpi-item {
  flex: 1 1 100px;
  align-self: normal;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  border: 2px solid var(--gray-medium);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* barra arancio in cima — stesso pattern service-card */
.kpi-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--orange-primary),
      var(--yellow-primary),
      var(--red-accent));
}

.kpi-item:hover {
  transform: translateY(-6px);
  border-color: var(--orange-primary);
  box-shadow: 0 12px 30px rgba(233, 83, 14, 0.15);
}

.kpi-number {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── colonna immagini ── */
.hero-azienda__images {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.7s ease 0.15s both;
}

.img-main {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(233, 83, 14, 0.25);
  transform: rotate(1.5deg);
  transition: 0.3s;
}

.img-main:hover {
  transform: rotate(-1deg);
  box-shadow: 0 24px 70px rgba(233, 83, 14, 0.35);
}

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

.img-secondary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: stretch;
}

.img-secondary img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  transition: 0.3s;
}

.img-secondary img:hover {
  transform: translateY(-5px);
}

/* ══════════════════════════════════════════
   PUNTI FORZA
══════════════════════════════════════════ */
#section-force {
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-image: url("../media/img-force.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100% 20%;
}

.txt-container {
  background: #efefef1c;
  backdrop-filter: blur(2px);
  border-radius: 30px;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  padding: 2rem 0;
}

.txt-container h2 {
  align-items: center;
  justify-self: start !important;
   
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-style: italic;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #f9af17, #e9530e);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>") no-repeat center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* ══════════════════════════════════════════
   MISSION
══════════════════════════════════════════ */

#section-mission {
  padding: 60px 10%;
  margin: 0 auto;
  background: linear-gradient(135deg,
      var(--gray-light) 0%,
      var(--white) 60%,
      rgba(249, 175, 23, 0.12) 100%);
}

.txt-mission {
  text-align: center;
}

/* ══════════════════════════════════════════
   CERRTIFICAZIONI
══════════════════════════════════════════ */
#section-certfication {
  padding: 60px 10%;

}

.img-certification-col {
  background-image: url(../media/iqnet-vector-logo.png);
  background-size: cover;
  background-position: top;
  width: 400px;
  height: 420px;
}

.text-certification {
  padding: 40px 20px;
}

.text-esg {
  padding: 30px;
  text-align: center;
  color: #686565;
}

.service-list-certification {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-list-certification li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-list-certification li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #17a6f9, #29b317);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>") no-repeat center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* ══════════════════════════════════════════
   PEOPLE
══════════════════════════════════════════ */

#people-section {
  padding: 60px 10%;
  background: linear-gradient(135deg,
      var(--gray-light) 0%,
      var(--white) 60%,
      rgba(249, 175, 23, 0.12) 100%);
  position: relative;
  overflow: hidden;
}

.people-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── testo ── */
.people-content {
  flex: 1 1 250px;
  animation: fadeInUp 0.7s ease both;
}

.people-content h2 {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.people-content p strong {
  color: var(--orange-primary);
}

/* ── galleria ── */
.people-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  animation: fadeInUp 0.7s ease 0.15s both;
  justify-content: space-around;
  align-items: center;
}

.people-gallery img {
  max-width: 100%;
  transition: all 0.5s ease-out;
}

.people-gallery img:hover {
  transform: translateY(-10px);
}

.people-section-text,
.reviews__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--gray-text);
  line-height: 1.8;
  font-weight: 400;
}

/* ══════════════════════════════════════════
   ANIMAZIONI
══════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

@media (max-width: 1024px) {

  .hero-azienda__container,
  .people-container {
    flex-direction: column;
    gap: 2rem;
  }

  .valore-card {
    flex: 1 1 calc(50% - 1rem);
  }

  .kpi-section {
    width: 100%;
  }

  .kpi-number {
    font-size: 1.8rem;
  }

  .people-gallery .last-img {
    align-self: normal;
    grid-column: unset;
    max-width: 100%;
    justify-self: normal;
  }

  /* ── MOSTRA IMMAGINI SU TABLET/MOBILE ── */
  .hero-azienda__images {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
    width: 100%;
  }

  .img-main {
    transform: rotate(0deg);
    box-shadow: 0 15px 40px rgba(233, 83, 14, 0.2);
  }

  .img-secondary {
    display: none;
  }

  /* ── ORDINAMENTO ELEMENTI CON DISPLAY: CONTENTS ── */
  .hero-azienda__content {
    display: contents;
  }

  .badge {
    font-size: 0.75rem;
    order: 1;
    margin-bottom: 1rem;
    align-self: flex-start;
  }

  .hero-azienda__content h1 {
    order: 2;
    margin-bottom: 1.25rem;
    width: 100%;
    text-align: left;
  }

  .hero-azienda__images {
    order: 3;
  }

  .lead-text {
    order: 4;
  }

  .kpi-section {
    order: 5;
  }

  .about-us-text {
    order: 6;
    margin-top: 1rem;
    width: 100%;
    text-align: left;
  }

  .hero-azienda__content {
    text-align: left;
  }

  .img-secondary {
    flex-direction: column;
  }

  .valore-card {
    flex: 1 1 100%;
  }

  img {
    object-fit: cover;
  }

  .people-gallery .last-img {
    align-self: center;
    grid-column: 1 / 3;
    justify-self: center;
  }
}

@media (max-width: 1000px) {
  .people-gallery img {
    max-width: 100%;
    transition: all 0.5s ease-out;
  }

  .people-gallery .last-img {
    align-self: normal;
    grid-column: unset;
    max-width: 100%;
    justify-self: normal;
  }
}

@media (max-width: 991px) {

  .hero-azienda__container,
  .people-container {
    flex-direction: column;
  }

  .people-gallery {
    width: 100%;
  }

  .people-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .img-main {
    transform: rotate(0deg);
  }

  .img-main:hover {
    transform: scale(1.01);
  }

  .valori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .people-gallery img {
    max-width: 100%;
    transition: all 0.5s ease-out;
  }

  .people-gallery .last-img {
    align-self: center;
    grid-column: 1 / 3;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  #heroAzienda {
    padding: 60px 5%;
  }

  .hero-azienda__container {
    padding-inline: 0;
    flex-direction: column;
    display: flex;
    gap: 1.5rem;
  }

  /* ── MOSTRA IMMAGINI ── */
  .hero-azienda__images {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .img-main {
    transform: rotate(0deg);
    box-shadow: 0 15px 40px rgba(233, 83, 14, 0.2);
  }

  .img-secondary {
    display: none;
  }

  /* ── ORDINAMENTO CON DISPLAY: CONTENTS ── */
  .hero-azienda__content {
    display: contents;
    text-align: left;
  }

  .badge {
    font-size: 0.7rem;
    order: 1;
    margin-bottom: 1rem;
    align-self: flex-start;
  }

  .hero-azienda__content h1 {
    order: 2;
    margin-bottom: 1.25rem;
    width: 100%;
    text-align: left;
  }

  .hero-azienda__images {
    order: 3;
  }

  .lead-text {
    order: 4;
    width: 100%;
  }

  #valori-section {
    padding: 60px 5%;
  }

  .kpi-section {
    order: 5;
    width: 100%;
  }

  .about-us-text {
    order: 6;
    margin-top: 1rem;
    width: 100%;
    text-align: left;
  }

  /* ── Altri stili mobile ── */
  .kpi-section {
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .img-secondary {
    flex-direction: column;
  }

  .valore-card {
    flex: 1 1 100%;
  }

  img {
    object-fit: cover;
  }

  .people-gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }

  .people-gallery .last-img {
    align-self: center;
    grid-column: 1 / 3;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .hero-azienda__container {
    padding: 2rem 0 0;
    padding-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* ── MOSTRA IMMAGINI ── */
  .hero-azienda__images {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .img-main {
    transform: rotate(0deg);
    box-shadow: 0 12px 30px rgba(233, 83, 14, 0.18);
  }

  .img-secondary {
    display: none;
  }

  .txt-mission h2,
  .txt-container h2 {
    font-size: 2rem;
  }

  .txt-mission h3 {
    font-size: 1.1rem;
  }

  /* ── ORDINAMENTO CON DISPLAY: CONTENTS ── */
  .hero-azienda__content {
    display: contents;
    text-align: left;
  }

  .badge {
    order: 1;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1.2rem;
  }

  .hero-azienda__content h1 {
    order: 2;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    width: 100%;
    text-align: left;
  }

  .hero-azienda__images {
    order: 3;
  }

  .lead-text {
    order: 4;
    width: 100%;
    font-size: 0.95rem;
  }

  /* ─── STATS GRID - Effetto carte ─── */
  .kpi-section {
    order: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 2rem;
  }

  .kpi-item {
    position: relative;
    width: 95%;
    max-width: 250px;
    flex: none;
    align-self: center;
    background: linear-gradient(135deg,
        var(--white) 0%,
        var(--gray-light) 100%);
    border: 2px solid var(--gray-medium);
    border-radius: 16px;
    padding: 1rem 0.9rem;
    text-align: center;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease,
      border-color 0.3s ease,
      z-index 0.2s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    margin-top: -22px;
    z-index: 1;
  }

  .kpi-item:first-child {
    margin-top: 0;
    z-index: 3;
    left: 5%;
    transform: rotate(-2deg);
    border-color: var(--orange-primary);
  }

  .kpi-item:nth-child(2) {
    z-index: 2;
    left: -5%;
    transform: rotate(1.5deg);
  }

  .kpi-item:nth-child(3) {
    z-index: 1;
    left: 5%;
    transform: rotate(-1deg);
  }

  .kpi-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        var(--orange-primary),
        var(--yellow-primary),
        var(--red-accent));
    border-radius: 16px 16px 0 0;
  }

  .kpi-item:hover {
    z-index: 10 !important;
    transform: scale(1.02) rotate(0deg) !important;
    border-color: var(--orange-primary);
    box-shadow: 0 20px 45px rgba(233, 83, 14, 0.25);
  }

  .about-us-text {
    order: 6;
    margin-top: 1rem;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
  }

  /* ── Altri stili mobile ── */
  .valori-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .people-gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .people-gallery .last-img {
    grid-column: unset;
    max-width: 100%;
  }

  #section-force {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* SECTION */
.reviews {
  padding-block: 100px;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.reviews__header {
  text-align: center;
  margin-bottom: 60px;
}

.reviews__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

/* GRID */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .reviews {
    padding-block: 100px;
    max-width: 1000px;
    margin: auto;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .reviews {
    max-width: 900px;
  }
}

@media (max-width: 1000px) {
  .reviews {
    max-width: 800px;
  }

  .reviews__grid {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 0 auto;
  }

  .reviews__subtitle {
    padding: 0 0.8rem;
  }
}

/* CARD */
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* USERNAME */
.review-card__username {
  font-size: 0.85rem;
  color: #fff;
  font-weight: bolder;
  font-size: 1rem;
  margin-bottom: 0px;
  padding-left: 25px;
  padding-block: 10px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg,
      var(--orange-primary),
      var(--yellow-primary));
}

/* BOX */
.review-card__box {
  position: relative;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* 🔥 mantiene tutte uguali */

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.review-card__box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* FOTO */
.review-card__photo {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

/* TITLE */
.review-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-right: 70px;
  color: #111;
}

/* STARS */
.review-card__stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* TESTO */
.review-card__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;

  flex-grow: 1;
  /* 🔥 riempie lo spazio → allinea tutto */
}

.revies-btn-container {
  margin-top: 60px;
  text-align: center;
  display: flex;
  grid-column: span 3;
  justify-content: center;
}

.reviews__btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;

  background: linear-gradient(135deg,
      var(--orange-primary),
      var(--yellow-primary));

  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
  transition: all 0.3s ease;
}

.reviews__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.reviews__btn::after {
  content: " →";
  transition: transform 0.3s ease;
}

.reviews__btn:hover::after {
  transform: translateX(4px);
}