/* RIVA.AZ FINAL RESPONSIVE / PERFORMANCE / CORPORATE SEO */

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

@media (max-width:768px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .container-fluid,
  main,
  section,
  article {
    max-width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    max-width: 100%;
  }

  a,
  button {
    min-height: 44px;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

.riva-group-service {
  margin: 40px auto;
  padding: 28px;
  max-width: 1180px;
  border-radius: 16px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
}

.riva-group-service h2 {
  margin-top: 0;
  line-height: 1.25;
}

.riva-group-service p {
  line-height: 1.7;
}

.riva-group-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 28px;
  margin: 20px 0;
}

.riva-group-grid a {
  text-decoration: none;
}

.riva-group-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.riva-group-cta a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width:768px) {
  .riva-group-service {
    margin: 25px 12px;
    padding: 20px;
  }

  .riva-group-grid {
    grid-template-columns: 1fr;
  }

  .riva-group-cta {
    flex-direction: column;
  }

  .riva-group-cta a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

.riva-seo-links {
  margin: 25px auto;
  padding: 15px;
  max-width: 1180px;
  line-height: 1.8;
}

.riva-seo-links a {
  margin-right: 10px;
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
