/* =========================================================
   RENIX — Pagina Servizi
   Allineata alla grafica desktop fornita.
   Il footer resta gestito esclusivamente da style.css.
========================================================= */

/* =========================================================
   VIDEO SCROLL-DRIVEN
   Conservato per una futura riattivazione, ma nascosto ora.
========================================================= */

.renixvid {
  position: relative;
  width: 100%;
  height: 600vh;
  background: #0b0f13;
  display: none !important;
}

.renixvid__pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f13;
}

.renixvid__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0b0f13;
  pointer-events: none;
  will-change: transform;
}

.renixvid__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f13;
  transition: opacity 0.6s ease;
}

.renixvid__loader > span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--green, #91c3a2);
  border-radius: 50%;
  animation: renixvid-spin 0.9s linear infinite;
}

@keyframes renixvid-spin {
  to {
    transform: rotate(360deg);
  }
}

.renixvid__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.renixvid.is-missing .renixvid__loader > span {
  display: none;
}

.renixvid.is-missing .renixvid__loader::after {
  content: "Inserisci il video in assets/renix/video/renix-scroll.mp4";
  padding: 0 8vw;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.renixvid.is-reduced {
  height: auto !important;
}

.renixvid.is-reduced .renixvid__pin {
  position: relative;
}

/* =========================================================
   REGOLE COMUNI DELLA PAGINA
========================================================= */

.services-intro,
.renix-services-section,
.renix-why-section,
.services-intro *,
.renix-services-section *,
.renix-why-section * {
  box-sizing: border-box;
}

.renix-services-container {
  width: min(100%, 1120px);
  margin-inline: auto;
}

/* Nella grafica la sezione "Perché scegliere RENIX" usa quasi
   tutta la larghezza disponibile, con circa il 5,8% di margine per lato. */
.renix-why-container {
  width: min(
    calc(100% - clamp(64px, 11.6vw, 220px)),
    1680px
  );
  margin-inline: auto;
}

/* =========================================================
   HERO STATICA
========================================================= */

.services-intro {
  position: relative;
  width: 100%;
  height: clamp(500px, 57vw, 620px);
  min-height: 0;
  overflow: hidden;
  background: #344041;
  color: #ffffff;
}

.services-intro__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.services-intro__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 17, 16, 0.76) 0%,
      rgba(10, 17, 16, 0.55) 42%,
      rgba(10, 17, 16, 0.20) 72%,
      rgba(10, 17, 16, 0.05) 100%
    );
}

.services-intro__container {
  position: relative;
  z-index: 2;
  width: min(calc(100% - clamp(56px, 10.6vw, 144px)), 1120px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.services-intro__copy {
  width: min(100%, 610px);
  transform: translateY(38px);
}

.services-intro__copy h1 {
  max-width: 510px;
  margin: 0 0 20px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(36px, 4.3vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.services-intro__copy p {
  max-width: 600px;
  margin: 0 0 31px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.services-intro__button {
  width: fit-content;
  min-width: 202px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #cde4c5;
  color: #4c5a5c;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.services-intro__button:hover {
  background: #dff0d9;
  transform: translateY(-2px);
}

.services-intro__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

/* =========================================================
   TITOLI DELLE SEZIONI
========================================================= */

.renix-section-heading {
  margin: 0;
}

.renix-section-heading h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.renix-section-heading span {
  display: block;
  height: 3px;
  margin-top: 10px;
  background: currentColor;
}

.renix-section-heading--center {
  margin-bottom: 62px;
  color: #cde4c5;
  text-align: center;
}

.renix-section-heading--center span {
  width: min(280px, 65vw);
  margin-right: auto;
  margin-left: auto;
}

.renix-section-heading--left {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: left;
}

.renix-section-heading--left h2 {
  font-size: clamp(30px, 3.5vw, 42px);
}

.renix-section-heading--left span {
  width: 100%;
  min-width: 0;
  height: 3px;
}

/* =========================================================
   SERVIZI
========================================================= */

.renix-services-section {
  background: #4c5a5c;
  padding:
    54px
    clamp(28px, 5.3vw, 72px)
    80px;
}

.renix-services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 102px;
  align-items: stretch;
}

.renix-service-card {
  grid-column: span 2;
  min-width: 0;
  min-height: 247px;
  padding: 38px 24px 25px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 7px rgba(21, 31, 29, 0.24);
  color: #405052;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.renix-service-card--row2:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.renix-service-card--row2:last-child {
  grid-column: 4 / span 2;
}

.renix-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(21, 31, 29, 0.22);
}

.renix-service-icon {
  width: 31px;
  height: 31px;
  margin-bottom: 15px;
  color: #91c3a2;
}

.renix-service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.renix-service-card h3 {
  margin: 0 0 18px;
  color: #435357;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.renix-service-card p {
  max-width: 270px;
  margin: 0;
  color: #354144;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.renix-card-arrow {
  margin-top: auto;
  display: inline-block;
  color: #91c3a2;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  transform: translateY(2px);
}

/* =========================================================
   PERCHÉ SCEGLIERE RENIX
========================================================= */

.renix-why-section {
  background: #344041;
  padding:
    70px
    clamp(28px, 5.3vw, 72px)
    45px;
}

.renix-why-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(120px, 17vw, 260px);
  row-gap: 31px;
}

.renix-why-item {
  min-width: 0;
  color: #ffffff;
}

.renix-why-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
  color: #91c3a2;
}

.renix-why-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.renix-why-item h3 {
  margin: 0 0 6px;
  color: #cde4c5;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.renix-why-item p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

/* =========================================================
   TABLET
   Il layout desktop a tre colonne rimane attivo a 890 px,
   come nella grafica. Il cambio avviene solo sotto 780 px.
========================================================= */

@media (max-width: 780px) {
  .services-intro {
    height: 560px;
  }

  .services-intro__background {
    object-position: 57% center;
  }

  .services-intro__container {
    width: calc(100% - 44px);
  }

  .services-intro__copy {
    transform: translateY(28px);
  }

  .services-intro__copy h1 {
    max-width: 470px;
    font-size: clamp(36px, 7vw, 48px);
  }

  .services-intro__copy p {
    max-width: 520px;
    font-size: 17px;
  }

  .renix-services-section {
    padding: 56px 28px 72px;
  }

  .renix-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .renix-service-card,
  .renix-service-card--row2:nth-last-child(2),
  .renix-service-card--row2:last-child {
    grid-column: auto;
  }

  .renix-service-card {
    min-height: 247px;
  }

  .renix-why-section {
    padding: 58px 28px 52px;
  }

  .renix-why-container {
    width: 100%;
  }

  .renix-why-grid {
    column-gap: 50px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
  .services-intro {
    height: 590px;
  }

  .services-intro__background {
    object-position: 62% center;
  }

  .services-intro__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 17, 16, 0.16) 0%,
        rgba(10, 17, 16, 0.42) 38%,
        rgba(10, 17, 16, 0.91) 100%
      );
  }

  .services-intro__container {
    width: calc(100% - 36px);
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .services-intro__copy {
    transform: none;
  }

  .services-intro__copy h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .services-intro__copy p {
    margin-bottom: 27px;
    font-size: 16px;
    line-height: 1.4;
  }

  .services-intro__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .renix-services-section {
    padding: 50px 18px 62px;
  }

  .renix-section-heading--center {
    margin-bottom: 42px;
  }

  .renix-services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .renix-service-card {
    min-height: 230px;
    padding: 32px 25px 24px;
  }

  .renix-service-card h3 {
    font-size: 23px;
  }

  .renix-service-card p {
    font-size: 14px;
  }

  .renix-why-section {
    padding: 52px 18px 56px;
  }

  .renix-section-heading--left {
    margin-bottom: 34px;
  }

  .renix-why-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .renix-why-item p {
    max-width: none;
  }
}

/* ==================================================
   HOMEPAGE RENIX — HEADER GLASS / BLUR
   Deve rimanere in fondo a style.css
================================================== */

.home-page .site-header,
.home-page .site-header.header-compact {
  background: rgba(244, 247, 249, 0.72) !important;

  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;

  border-bottom: 1px solid rgba(76, 91, 92, 0.14) !important;
  box-shadow: none !important;
}

/* L'interno non deve avere un secondo sfondo */
.home-page .header-inner,
.home-page .site-header.header-compact .header-inner {
  background: transparent !important;
}

/* Leggera trasparenza anche sul pulsante attivo */
.home-page .main-nav a.is-active,
.home-page .site-header.header-compact .main-nav a.is-active {
  background: rgba(145, 195, 162, 0.88) !important;
  color: #ffffff !important;
}

/* Menu mobile: resta leggibile e separato dall'header */
@media (max-width: 980px) {
  .home-page .main-nav,
  .home-page .site-header.header-compact .main-nav {
    background: rgba(255, 255, 255, 0.94) !important;

    -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }
}

/* ==================================================
   HOMEPAGE — HERO DIETRO L'HEADER
================================================== */

.home-page .site-header,
.home-page .site-header.header-compact {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* La hero parte realmente dall'inizio della pagina */
.home-page .hero {
  margin-top: 0 !important;
}

/* Il testo resta sotto all'header */
.home-page .hero-content {
  top: 200px !important;
}

/* Tablet e mobile */
@media (max-width: 980px) {
  .home-page .hero {
    min-height: 100svh !important;
  }

  .home-page .hero-content {
    top: auto !important;
    padding-top: 150px !important;
  }
}

@media (max-width: 560px) {
  .home-page .hero-content {
    padding-top: 130px !important;
  }
}

/* ==================================================
   HOMEPAGE — HEADER GLASS FLOTTANTE
================================================== */

.home-page .site-header,
.home-page .site-header.header-compact {
  position: fixed !important;
  top: 18px !important;
  left: 20px !important;
  right: 20px !important;

  width: calc(100% - 40px) !important;
  height: 104px !important;

  border-radius: 12px !important;
  overflow: visible !important;

  background: rgba(255, 255, 255, 0.98) !important;

  -webkit-backdrop-filter: blur(16px) saturate(100%) !important;
  backdrop-filter: blur(16px) saturate(100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 10px 35px rgba(29, 43, 44, 0.12) !important;
}

/* Altezza interna ridotta */
.home-page .header-inner,
.home-page .site-header.header-compact .header-inner {
  height: 104px !important;
  padding: 0 48px 0 32px !important;
  background: transparent !important;
}

/* Logo leggermente più piccolo */
.home-page .brand,
.home-page .site-header.header-compact .brand {
  width: 290px !important;
  height: 84px !important;
}

/* Navigazione più sottile */
.home-page .main-nav,
.home-page .site-header.header-compact .main-nav {
  height: 52px !important;
  gap: 30px !important;
}

.home-page .main-nav a,
.home-page .site-header.header-compact .main-nav a {
  height: 52px !important;
  padding: 0 13px !important;
  font-size: 18px !important;
}

/* Pulsante Home */
.home-page .main-nav a.is-active,
.home-page .site-header.header-compact .main-nav a.is-active {
  width: 108px !important;
  min-width: 108px !important;
  height: 52px !important;
  background: rgba(145, 195, 162, 0.88) !important;
}

/* Nasconde completamente l'header durante lo scroll */
.home-page .site-header.header-hidden {
  transform: translateY(calc(-100% - 24px)) !important;
}

/* Riposiziona il contenuto della hero */
.home-page .hero-content {
  top: 175px !important;
}

@media (max-width: 980px) {
  .home-page .site-header,
  .home-page .site-header.header-compact {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;

    width: calc(100% - 20px) !important;
    height: 72px !important;

    border-radius: 10px !important;
  }

  .home-page .header-inner,
  .home-page .site-header.header-compact .header-inner {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 16px !important;
  }

  .home-page .brand,
  .home-page .site-header.header-compact .brand {
    width: 158px !important;
    height: 52px !important;
    flex-basis: 158px !important;
  }

  .home-page .main-nav,
  .home-page .site-header.header-compact .main-nav {
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
  }

  .home-page .hero-content {
    top: auto !important;
    padding-top: 135px !important;
  }
}

/* Ridimensionamento icona Tecnologia avanzata */

@media (min-width: 981px) {
  .value-card:nth-child(3) img {
    transform: scale(1.25) translateY(-4px) !important;
  }
}

@media (max-width: 980px) {
  .value-card:nth-child(3) img {
    transform: scale(1) !important;
  }
}

/* ==================================================
   FOOTER RENIX — ALTEZZA PIÙ COMPATTA
================================================== */

@media (min-width: 981px) {
  .footer-main {
    min-height: 245px !important;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }

  .footer-address,
  .footer-links,
  .footer-social {
    grid-template-rows: 48px 40px 40px 40px !important;
    row-gap: 8px !important;
  }

  .footer-symbol {
    width: 130px !important;
    margin-bottom: 20px !important;
  }

  .footer-brand {
    transform: translate(-20px, 0) !important;
  }

  .footer-logo-text {
    font-size: 22px !important;
    letter-spacing: 6px !important;
  }

  .footer-address,
  .footer-links a,
  .footer-social a {
    font-size: 18px !important;
  }

  .footer-links h2,
  .footer-social h2 {
    font-size: 20px !important;
  }

  .footer-bottom {
    height: 58px !important;
    min-height: 58px !important;
  }

  .footer-bottom a {
    font-size: 18px !important;
  }
}

/* ==================================================
   FOOTER DESKTOP — 4 COLONNE SULLA STESSA RIGA
   Logo | Contatti | Social | Link utili
================================================== */

@media (min-width: 981px) {
  .footer-main {
    width: 100% !important;
    min-height: 250px !important;
    padding: 28px 60px !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas: "logo contatti social link" !important;

    column-gap: 30px !important;
    align-items: center !important;

    background: #ffffff !important;
  }

  /* Posizione precisa dei quattro blocchi */

  .footer-brand {
    grid-area: logo !important;
  }

  .footer-address {
    grid-area: contatti !important;
  }

  .footer-social {
    grid-area: social !important;
  }

  .footer-links {
    grid-area: link !important;
  }

  /* Elimina tutti i vecchi spostamenti */

  .footer-brand,
  .footer-address,
  .footer-links,
  .footer-social {
    transform: none !important;
    grid-row: 1 !important;
  }

  /* Logo centrato nella prima colonna */

  .footer-brand {
    width: 100% !important;
    justify-self: stretch !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Gli altri tre blocchi centrati nelle rispettive colonne */

  .footer-address,
  .footer-links,
  .footer-social {
    width: max-content !important;
    max-width: 100% !important;
    justify-self: center !important;
    align-self: center !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;

    grid-template-rows: none !important;
    row-gap: 0 !important;
  }

  /* Spaziature contatti */

  .footer-address p {
    margin: 0 0 14px !important;
  }

  .footer-address p:last-child {
    margin-bottom: 0 !important;
  }

  /* Spaziature link e social */

  .footer-links h2,
  .footer-social h2 {
    margin: 0 0 22px !important;
  }

  .footer-links a,
  .footer-social a {
    margin: 0 0 16px !important;
  }

  .footer-links a:last-child,
  .footer-social a:last-child {
    margin-bottom: 0 !important;
  }
}
@media (min-width: 981px) {
  .footer-brand {
    transform: translateY(-14px) !important;
  }
}


/* =========================================================
   COME LAVORIAMO
========================================================= */

.renix-process-section,
.renix-process-section * {
  box-sizing: border-box;
}


/* =========================================================
   SEZIONE
========================================================= */

.renix-process-section {
  width: 100%;
  overflow: hidden;

  background: #c7ddc1;
  color: #344041;

  padding:
    52px
    clamp(28px, 5.3vw, 72px)
    46px;
}


.renix-process-container {
  width: min(100%, 1320px);

  margin-inline: auto;
}


/* =========================================================
   TITOLO
========================================================= */

.renix-process-heading {
  width: fit-content;

  margin:
    0
    auto
    50px;

  text-align: center;

  color: #344041;
}


.renix-process-heading h2 {
  margin: 0;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size:
    clamp(27px, 2.8vw, 38px);

  line-height: 1.08;

  font-weight: 700;

  letter-spacing: -0.035em;
}


.renix-process-heading span {
  display: block;

  width: 100%;
  height: 3px;

  margin-top: 9px;

  background: currentColor;
}


/* =========================================================
   AREA ORIZZONTALE
========================================================= */

.renix-process-scroll {
  width: 100%;
}


.renix-process-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap:
    clamp(70px, 8vw, 120px);

  align-items: start;
}


/* =========================================================
   SINGOLO STEP
========================================================= */

.renix-process-step {
  position: relative;

  min-width: 0;

  text-align: center;

  color: #344041;
}


/* =========================================================
   CERCHIO BIANCO
========================================================= */

.renix-process-icon {
  width:
    clamp(94px, 8.5vw, 116px);

  aspect-ratio: 1;

  margin:
    0
    auto
    16px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #ffffff;

  border-radius: 50%;

  box-shadow:
    0 4px 10px
    rgba(52, 64, 65, 0.18);
}


/* =========================================================
   ICONA DENTRO IL CERCHIO
========================================================= */

.renix-process-icon img {
  display: block;

  width: 55%;
  height: 55%;

  object-fit: contain;
}


/* =========================================================
   NUMERO
========================================================= */

.renix-process-number {
  display: block;

  margin-bottom: 7px;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size: 24px;

  line-height: 1;

  font-weight: 700;

  color: #344041;
}


/* =========================================================
   TITOLO STEP
========================================================= */

.renix-process-step h3 {
  margin:
    0
    0
    7px;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size:
    clamp(17px, 1.7vw, 22px);

  line-height: 1.15;

  font-weight: 700;

  letter-spacing: -0.025em;

  color: #344041;
}


/* =========================================================
   TESTO STEP
========================================================= */

.renix-process-step p {
  margin: 0;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size: 14px;

  line-height: 1.45;

  font-weight: 400;

  color: #536163;
}


/* =========================================================
   FRECCE FRA GLI STEP
   File: freccia.png
========================================================= */

.renix-process-step:not(:last-child)::after {
  content: "";

  position: absolute;

  z-index: 2;

  top: 40px;

  left:
    calc(
      100% +
      clamp(35px, 4vw, 60px)
    );

  width: 56px;
  height: 34px;

  transform: translateX(-50%);

  background-image:
    url("./assets/processo/freccia.png");

  background-repeat:
    no-repeat;

  background-position:
    center;

  background-size:
    contain;

  pointer-events: none;
}


/* =========================================================
   TABLET
   Mantiene ESATTAMENTE la logica desktop.
   Gli elementi scorrono semplicemente in orizzontale.
========================================================= */

@media (max-width: 780px) {

  .renix-process-section {
    padding:
      46px
      0
      44px;
  }


  .renix-process-container {
    width: 100%;
  }


  .renix-process-heading {
    margin:
      0
      auto
      42px;

    padding:
      0
      20px;
  }


  .renix-process-heading h2 {
    font-size: 30px;
  }


  /*
     Il contenuto rimane orizzontale.
     Su schermi piccoli si può trascinare col dito.
  */

  .renix-process-scroll {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
      0
      24px
      14px;

    -webkit-overflow-scrolling:
      touch;

    scrollbar-width:
      none;

    scroll-snap-type:
      x proximity;
  }


  .renix-process-scroll::-webkit-scrollbar {
    display: none;
  }


  /*
     Manteniamo i quattro step
     sulla stessa riga.
  */

  .renix-process-grid {
    display: flex;

    width: max-content;

    gap: 72px;

    align-items: flex-start;
  }


  /*
     Nessuna card.
     Nessun box aggiuntivo.
     Stessa struttura del desktop.
  */

  .renix-process-step {
    flex:
      0
      0
      175px;

    width: 175px;

    min-width: 175px;

    padding: 0;

    background: transparent;

    border-radius: 0;

    box-shadow: none;

    text-align: center;

    scroll-snap-align: start;
  }


  /*
     Cerchio praticamente uguale
     al desktop.
  */

  .renix-process-icon {
    width: 100px;

    margin:
      0
      auto
      16px;

    box-shadow:
      0 4px 10px
      rgba(52, 64, 65, 0.18);
  }


  .renix-process-icon img {
    width: 55%;
    height: 55%;
  }


  .renix-process-number {
    margin-bottom: 7px;

    font-size: 22px;
  }


  .renix-process-step h3 {
    margin:
      0
      0
      7px;

    font-size: 18px;

    line-height: 1.15;
  }


  .renix-process-step p {
    margin: 0;

    font-size: 14px;

    line-height: 1.45;
  }


  /*
     Manteniamo anche i <br>
     esattamente come su desktop.
  */

  .renix-process-step p br {
    display: initial;
  }


  /*
     Freccia PNG anche su mobile.
     Rimane centrata fra i due cerchi.
  */

  .renix-process-step:not(:last-child)::after {
    display: block;

    top: 34px;

    left: calc(100% + 36px);

    width: 50px;
    height: 32px;

    transform: translateX(-50%);

    background-image:
      url("./assets/processo/freccia.png");

    background-repeat:
      no-repeat;

    background-position:
      center;

    background-size:
      contain;
  }

}


/* =========================================================
   MOBILE
   Stesso identico layout del desktop,
   solo con scroll orizzontale.
========================================================= */

@media (max-width: 560px) {

  .renix-process-section {
    padding:
      42px
      0
      40px;
  }


  .renix-process-heading {
    margin-bottom: 38px;
  }


  .renix-process-heading h2 {
    font-size: 28px;
  }


  .renix-process-heading span {
    height: 3px;

    margin-top: 8px;
  }


  .renix-process-scroll {
    padding:
      0
      22px
      12px;
  }


  /*
     Continuiamo ad avere:
     STEP → STEP → STEP → STEP
  */

  .renix-process-grid {
    gap: 68px;
  }


  .renix-process-step {
    flex:
      0
      0
      165px;

    width: 165px;

    min-width: 165px;
  }


  .renix-process-icon {
    width: 96px;

    margin-bottom: 15px;
  }


  .renix-process-number {
    font-size: 21px;
  }


  .renix-process-step h3 {
    font-size: 17px;
  }


  .renix-process-step p {
    font-size: 13px;

    line-height: 1.45;
  }


  /*
     Freccia ancora presente
     e allineata ai cerchi.
  */

  .renix-process-step:not(:last-child)::after {
    top: 33px;

    left:
      calc(100% + 34px);

    width: 48px;
    height: 30px;
  }

}


/* =========================================================
   MOBILE MOLTO PICCOLO
========================================================= */

@media (max-width: 390px) {

  .renix-process-heading h2 {
    font-size: 26px;
  }


  .renix-process-grid {
    gap: 62px;
  }


  .renix-process-step {
    flex:
      0
      0
      155px;

    width: 155px;

    min-width: 155px;
  }


  .renix-process-icon {
    width: 92px;
  }


  .renix-process-number {
    font-size: 20px;
  }


  .renix-process-step h3 {
    font-size: 16px;
  }


  .renix-process-step p {
    font-size: 13px;
  }


  .renix-process-step:not(:last-child)::after {
    top: 31px;

    left:
      calc(100% + 31px);

    width: 44px;
    height: 28px;
  }

}
/* ==================================================
   PERCHÉ SCEGLIERE RENIX — TESTI PIÙ GRANDI
================================================== */

@media (min-width: 781px) {
  .renix-why-icon {
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 10px !important;
  }

  .renix-why-item h3 {
    margin-bottom: 8px !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  .renix-why-item p {
    max-width: 430px !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .renix-why-grid {
    row-gap: 42px !important;
  }
}
/* =========================================================
   FIX MOBILE — PULSANTE ATTIVO STESSA DIMENSIONE DELLA HOME
========================================================= */

@media (max-width: 980px) {

  .main-nav a.is-active,
  .site-header.header-compact .main-nav a.is-active {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: 34px !important;

    padding: 0 !important;

    font-size: 11px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #91c3a2 !important;
    color: #ffffff !important;

    border-radius: 8px !important;
  }

}
/* =========================================================
   COME LAVORIAMO — ANIMAZIONE SEQUENZIALE
========================================================= */

/* Tempi dei quattro passaggi */
.renix-process-step:nth-child(1) {
  --step-delay: 0s;
  --arrow-delay: 0.38s;
}

.renix-process-step:nth-child(2) {
  --step-delay: 0.52s;
  --arrow-delay: 0.90s;
}

.renix-process-step:nth-child(3) {
  --step-delay: 1.04s;
  --arrow-delay: 1.42s;
}

.renix-process-step:nth-child(4) {
  --step-delay: 1.56s;
}


/* Prima che l'animazione parta */
.renix-process-section.process-ready .renix-process-step {
  opacity: 0;
  transform: translateY(18px);
}


/* Le frecce inizialmente sono invisibili */
.renix-process-section.process-ready
.renix-process-step:not(:last-child)::after {
  opacity: 0;
}


/* =========================================================
   STEP CHE COMPARE
========================================================= */

.renix-process-section.process-ready.is-animated
.renix-process-step {
  animation:
    renixProcessStepIn
    0.55s
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;

  animation-delay: var(--step-delay);
}


@keyframes renixProcessStepIn {

  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

}


/* =========================================================
   GLOW DEL CERCHIO
========================================================= */

.renix-process-section.process-ready.is-animated
.renix-process-icon {
  animation:
    renixProcessGlow
    0.7s
    ease
    forwards;

  animation-delay:
    calc(var(--step-delay) + 0.15s);
}


@keyframes renixProcessGlow {

  0% {
    box-shadow:
      0 4px 10px
      rgba(52, 64, 65, 0.18);
  }

  45% {
    box-shadow:
      0 5px 14px rgba(52, 64, 65, 0.20),

      0 0 0 11px rgba(145, 195, 162, 0.24),

      0 0 38px rgba(145, 195, 162, 0.62),

      0 0 60px rgba(145, 195, 162, 0.22);
  }

  100% {
    box-shadow:
      0 4px 10px
      rgba(52, 64, 65, 0.18);
  }

}


/* =========================================================
   FRECCIA CHE SI "ACCENDE"
========================================================= */

.renix-process-section.process-ready.is-animated
.renix-process-step:not(:last-child)::after {

  animation:
    renixProcessArrow
    0.48s
    ease
    forwards;

  animation-delay:
    var(--arrow-delay);
}


@keyframes renixProcessArrow {

  0% {
    opacity: 0;
    filter:
      brightness(1);
  }

  50% {
    opacity: 1;

    filter:
      brightness(1.25)
      drop-shadow(
        0 0 6px
        rgba(145, 195, 162, 0.85)
      );
  }

  100% {
    opacity: 1;
    filter: none;
  }

}


/* =========================================================
   MICRO HOVER — SOLO DESKTOP
========================================================= */

@media (hover: hover) and (pointer: fine) {

  .renix-process-icon {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .renix-process-step:hover
  .renix-process-icon {
    transform: translateY(-4px);

    box-shadow:
      0 6px 14px
      rgba(52, 64, 65, 0.18),

      0 0 0 6px
      rgba(145, 195, 162, 0.14);
  }

}


/* =========================================================
   ACCESSIBILITÀ — RIDUZIONE MOVIMENTO
========================================================= */

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

  .renix-process-section.process-ready
  .renix-process-step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .renix-process-section.process-ready
  .renix-process-icon {
    animation: none !important;
  }

  .renix-process-section.process-ready
  .renix-process-step:not(:last-child)::after {
    opacity: 1 !important;
    animation: none !important;
    filter: none !important;
  }

}

/* =========================================================
   COME LAVORIAMO — ANIMAZIONE MOBILE
========================================================= */

@media (max-width: 768px) {

  /* Sequenza leggermente più rapida */

  .renix-process-step:nth-child(1) {
    --step-delay: 0s;
    --arrow-delay: 0.28s;
  }

  .renix-process-step:nth-child(2) {
    --step-delay: 0.38s;
    --arrow-delay: 0.66s;
  }

  .renix-process-step:nth-child(3) {
    --step-delay: 0.76s;
    --arrow-delay: 1.04s;
  }

  .renix-process-step:nth-child(4) {
    --step-delay: 1.14s;
  }


  /* Movimento più piccolo */
  .renix-process-section.process-ready
  .renix-process-step {
    transform: translateY(10px);
  }


  .renix-process-section.process-ready.is-animated
  .renix-process-step {
    animation-duration: 0.42s;
  }


  .renix-process-section.process-ready.is-animated
  .renix-process-icon {
    animation:
      renixProcessGlowMobile
      0.58s
      ease
      forwards;

    animation-delay:
      calc(var(--step-delay) + 0.10s);
  }

  @keyframes renixProcessGlowMobile {

    0% {
      box-shadow:
        0 3px 8px rgba(52, 64, 65, 0.16);
    }

    45% {
      box-shadow:
        0 3px 10px rgba(52, 64, 65, 0.18),

        0 0 0 7px rgba(145, 195, 162, 0.22),

        0 0 24px rgba(145, 195, 162, 0.55);
    }

    100% {
      box-shadow:
        0 3px 8px rgba(52, 64, 65, 0.16);
    }

  }
}

/* =========================================================
   HERO SERVIZI — ALLINEATA ALLA HOME
========================================================= */

@media (min-width: 781px) {

  .services-intro__container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding-left: 66px !important;
    padding-right: 40px !important;

    display: flex !important;
    align-items: center !important;
  }


  .services-intro__copy {
    width: min(100%, 760px) !important;

    transform: translateY(34px) !important;
  }


  .services-intro__copy h1 {
    max-width: 720px !important;

    margin-bottom: 24px !important;

    font-size: clamp(46px, 5vw, 64px) !important;

    line-height: 1.02 !important;

    letter-spacing: -0.04em !important;
  }


  .services-intro__copy p {
    max-width: 760px !important;

    margin-bottom: 34px !important;

    font-size: clamp(20px, 2vw, 25px) !important;

    line-height: 1.35 !important;
  }


  /* CTA grande come quello della Home */

  .services-intro__button {
    width: 372px !important;
    min-width: 372px !important;
    max-width: 372px !important;

    height: 62px !important;
    min-height: 62px !important;

    padding: 0 24px !important;

    border-radius: 6px !important;

    font-family: "Inter", Arial, sans-serif !important;

    font-size: 20px !important;
    font-weight: 500 !important;

    line-height: 1 !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;
  }

}