/* ==========================================================================
   Ready Group – nuova Home page (indexAction)
   Tutte le classi sono prefissate "rg-" per non collidere col resto del sito.
   Mobile-first: gli stili di base sono per smartphone, i breakpoint allargano.
   ========================================================================== */

.rg-page {
  --rg-navy: #154b7c;
  --rg-navy-dark: #0f3a61;
  --rg-blue: #5fa7e7;
  --rg-blue-dark: #3f8ad6;
  --rg-blue-tint: #eef6fd;
  --rg-blue-tint-2: #f5faff;
  --rg-ink: #16324a;
  --rg-gray: #5c6b7a;
  --rg-gray-light: #8a97a3;
  --rg-border: #e3edf6;
  --rg-white: #ffffff;
  --rg-radius: 18px;
  --rg-radius-sm: 12px;
  --rg-shadow: 0 14px 34px rgba(21, 75, 124, 0.10);
  --rg-shadow-sm: 0 6px 18px rgba(21, 75, 124, 0.08);

  --rg-c-ecommerce: #f79003;
  --rg-c-services: #316d77;
  --rg-c-site: #2f8fe0;
  --rg-c-learn: #ae132c;
  --rg-c-gestionali: #1f8a5f;

  background: var(--rg-white);
  color: var(--rg-ink);
  overflow-x: hidden;
}

.rg-page * {
  box-sizing: border-box;
}

.rg-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.rg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rg-section {
  padding: 56px 0;
}

.rg-section--tight {
  padding: 40px 0;
}

.rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-blue-dark);
  background: var(--rg-blue-tint);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.rg-eyebrow--light {
  color: var(--rg-white);
  background: rgba(255, 255, 255, 0.14);
}

.rg-title-group {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.rg-title-group--left {
  text-align: left;
  margin-left: 0;
}

.rg-h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--rg-navy);
  margin: 0 0 14px;
}

.rg-h2 .rg-accent {
  color: var(--rg-blue-dark);
}

.rg-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--rg-gray);
  margin: 0;
}

/* ---------- Buttons ---------- */

.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.rg-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.rg-btn--primary {
  background: var(--rg-navy);
  color: var(--rg-white);
  box-shadow: var(--rg-shadow-sm);
}

.rg-btn--primary:hover {
  background: var(--rg-navy-dark);
  color: var(--rg-white);
}

.rg-btn--outline {
  background: transparent;
  border-color: var(--rg-navy);
  color: var(--rg-navy);
}

.rg-btn--outline:hover {
  background: var(--rg-navy);
  color: var(--rg-white);
}

.rg-btn--white {
  background: var(--rg-white);
  color: var(--rg-navy);
}

.rg-btn--white:hover {
  background: var(--rg-blue-tint);
  color: var(--rg-navy);
}

.rg-btn--ghost-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--rg-white);
}

.rg-btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--rg-white);
}

.rg-btn--block {
  width: 100%;
}

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

.rg-hero {
  position: relative;
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--rg-blue-tint-2) 0%, var(--rg-white) 65%);
  overflow: hidden;
}

.rg-hero__glow {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rg-blue) 0%, rgba(95, 167, 231, 0) 70%);
  opacity: 0.35;
  pointer-events: none;
}

.rg-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.rg-hero__content {
  text-align: center;
}

.rg-hero__title {
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--rg-navy);
  margin: 0 0 20px;
}

.rg-hero__title .rg-accent {
  color: var(--rg-blue-dark);
}

.rg-hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--rg-gray);
  max-width: 560px;
  margin: 0 auto 28px;
}

.rg-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.rg-hero__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.rg-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rg-navy);
}

.rg-badge i {
  color: var(--rg-blue-dark);
  font-size: 16px;
}

.rg-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.rg-hero__blob {
  position: absolute;
  width: 78%;
  padding-top: 78%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rg-blue) 0%, var(--rg-navy) 100%);
  opacity: 0.9;
  top: -10%;
  z-index: 0;
}

.rg-hero__fox {
  position: relative;
  z-index: 1;
  width: 62%;
  max-width: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(21, 75, 124, 0.25));
}

/* ==========================================================================
   PROBLEMI
   ========================================================================== */

.rg-problems {
  background: var(--rg-white);
}

.rg-problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.rg-problem {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-sm);
  background: var(--rg-white);
}

.rg-problem__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rg-blue-tint);
  color: var(--rg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.rg-problem p {
  margin: 0;
  font-size: 15px;
  color: var(--rg-ink);
  font-weight: 600;
  line-height: 1.4;
}

.rg-problems__answer {
  background: var(--rg-blue-tint);
  border-radius: var(--rg-radius);
  padding: 26px 24px;
  text-align: center;
}

.rg-problems__answer i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rg-navy);
  color: var(--rg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.rg-problems__answer p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--rg-navy);
}

.rg-problems__answer span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--rg-gray);
}

/* ==========================================================================
   SOLUZIONI / AREE DI BUSINESS
   ========================================================================== */

.rg-solutions {
  background: var(--rg-blue-tint-2);
}

.rg-solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.rg-solution {
  --rg-accent: var(--rg-blue);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rg-white);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 26px 24px 24px;
  box-shadow: var(--rg-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rg-solution:hover {
  transform: translateY(-4px);
  box-shadow: var(--rg-shadow);
  text-decoration: none;
  color: inherit;
}

.rg-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--rg-accent);
}

.rg-solution__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--rg-white);
  background: var(--rg-accent);
  margin-bottom: 18px;
}

.rg-solution__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rg-accent);
  margin-bottom: 6px;
}

.rg-solution__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--rg-navy);
  margin: 0 0 10px;
}

.rg-solution__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--rg-gray);
  margin: 0 0 18px;
  flex-grow: 1;
}

.rg-solution__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rg-accent);
}

.rg-solution__link i {
  transition: transform 0.15s ease;
}

.rg-solution:hover .rg-solution__link i {
  transform: translateX(3px);
}

.rg-solution--soon {
  opacity: 0.9;
}

.rg-solution__soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rg-gray);
  background: var(--rg-border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ==========================================================================
   SETTORI
   ========================================================================== */

.rg-sectors {
  background: linear-gradient(160deg, var(--rg-navy) 0%, var(--rg-navy-dark) 100%);
  color: var(--rg-white);
}

.rg-sectors .rg-h2 {
  color: var(--rg-white);
}

.rg-sectors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rg-sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: var(--rg-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rg-sector i {
  font-size: 22px;
  color: var(--rg-blue);
}

.rg-sector span {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   CHI SIAMO
   ========================================================================== */

.rg-about {
  background: var(--rg-white);
}

.rg-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.rg-about__text .rg-lead {
  margin: 0 0 16px;
}

.rg-about__text .rg-lead:last-of-type {
  margin-bottom: 26px;
}

.rg-about__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 10px;
}

.rg-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rg-point i {
  flex: none;
  color: var(--rg-blue-dark);
  font-size: 17px;
  margin-top: 2px;
}

.rg-point span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rg-navy);
  line-height: 1.35;
}

.rg-about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.rg-about__visual-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--rg-blue-tint);
  border-radius: var(--rg-radius);
  padding: 30px 20px 0;
  overflow: hidden;
}

.rg-about__visual-card img {
  width: 70%;
  margin: 0 auto;
}

.rg-sedi {
  margin-top: 46px;
}

.rg-sedi__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rg-sede {
  text-align: center;
  padding: 22px 10px;
  border-radius: var(--rg-radius-sm);
  background: var(--rg-blue-tint-2);
  border: 1px solid var(--rg-border);
}

.rg-sede i {
  font-size: 24px;
  color: var(--rg-blue-dark);
  margin-bottom: 10px;
}

.rg-sede span {
  display: block;
  font-weight: 700;
  color: var(--rg-navy);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   METODO
   ========================================================================== */

.rg-method {
  background: var(--rg-blue-tint-2);
}

.rg-method__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: rg-step;
}

.rg-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--rg-white);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-sm);
  padding: 20px;
}

.rg-step__num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rg-navy);
  color: var(--rg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.rg-step__body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rg-navy);
}

.rg-step__body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--rg-gray);
  line-height: 1.5;
}

/* ==========================================================================
   LAVORA CON NOI
   ========================================================================== */

.rg-work {
  background: var(--rg-white);
}

.rg-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.rg-work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 28px 24px;
  box-shadow: var(--rg-shadow-sm);
}

.rg-work-card__icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--rg-white);
  background: var(--rg-navy);
  margin-bottom: 20px;
}

.rg-work-card__title {
  font-size: 23px;
  font-weight: 700;
  color: var(--rg-navy);
  margin: 0 0 12px;
}

.rg-work-card__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--rg-gray);
  margin: 0 0 20px;
}

.rg-work-card__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.rg-work-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--rg-ink);
}

.rg-work-card__list li i {
  flex: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 50%;
  background: var(--rg-blue-tint);
  color: var(--rg-blue-dark);
}

/* ==========================================================================
   CLIENTI
   ========================================================================== */

.rg-clients {
  background: var(--rg-white);
}

.rg-clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rg-client {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--rg-radius-sm);
  border: 1px solid var(--rg-border);
  color: var(--rg-gray);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   BLOG / NEWS
   ========================================================================== */

.rg-news {
  background: var(--rg-blue-tint-2);
}

.rg-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rg-news__card {
  background: var(--rg-white);
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow-sm);
}

/* ==========================================================================
   CTA FINALE
   ========================================================================== */

.rg-cta {
  background: linear-gradient(135deg, var(--rg-blue) 0%, var(--rg-navy) 100%);
  color: var(--rg-white);
  text-align: center;
}

.rg-cta__title {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
}

.rg-cta__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
}

.rg-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

@media (min-width: 576px) {
  .rg-hero__actions,
  .rg-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .rg-hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .rg-problems__grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 768px) {
  .rg-section {
    padding: 76px 0;
  }

  .rg-solutions__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .rg-method__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rg-work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rg-sedi__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .rg-hero {
    padding: 168px 0 90px;
  }

  .rg-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    text-align: left;
  }

  .rg-hero__content {
    text-align: left;
  }

  .rg-hero__subtitle {
    margin: 0 0 30px;
  }

  .rg-hero__actions {
    justify-content: flex-start;
  }

  .rg-hero__badges {
    justify-content: flex-start;
  }

  .rg-title-group {
    margin: 0 auto 46px;
  }

  .rg-problems__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .rg-problems__grid {
    margin-bottom: 0;
  }

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

  .rg-sectors__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .rg-about__grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .rg-method__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .rg-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .rg-clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rg-cta__actions {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .rg-solutions__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
