

/* html,
body {
  width: 100%;
  height: 100vh;
  margin: 0px;
  background: #fff;
  color: #636b6f;
  font-family: 'Raleway', sans-serif;
} */


section {
    float: left;
    width: 100%;
    display:block
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #c1c1c1;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: red;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: red;
}

.style_body {
  width: 100%;
  min-height: 100vh;
  margin: 0px;
  background: #fff;
  color: #636b6f;
  font-family: 'Raleway', sans-serif;
}

/* Landing header — floating rounded pill (gap top/left/right). Transparent over cover, white after scroll.
   Fixed (not sticky) so the cover shows through under the header at the top of the page. */
#landing_header_shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
#landing_header_shell .navbar.header {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
/* Over cover: shell clear; pill at 10% white — no mute/blur on the hero */
#landing_header_shell.landing_header_over_cover {
  background: transparent !important;
}
#landing_header_shell.landing_header_over_cover .navbar.header {
  background-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* After scroll: no soft gradient behind the pill — shell stays transparent */
#landing_header_shell.landing_header_scrolled {
  background: transparent !important;
}
#landing_header_shell.landing_header_over_cover .navbar-nav .nav-item .nav-link {
  color: #fff;
}
#landing_header_shell.landing_header_over_cover .navbar-nav .nav-item .nav-link .fa-globe {
  color: #fff !important;
}
#landing_header_shell.landing_header_over_cover .navbar .navbar-toggler .navbar-toggler-icon {
  background-color: #fff;
}
/* After scroll (or mobile menu open): solid white pill like app header */
#landing_header_shell.landing_header_scrolled .navbar.header,
#landing_header_shell:not(.landing_header_over_cover) .navbar.header {
  background-color: #fff !important;
}
#landing_header_shell.landing_header_scrolled .navbar-nav .nav-item .nav-link,
#landing_header_shell:not(.landing_header_over_cover) .navbar-nav .nav-item .nav-link {
  color: #61707d;
}
#landing_header_shell.landing_header_scrolled .navbar .navbar-toggler .navbar-toggler-icon,
#landing_header_shell:not(.landing_header_over_cover) .navbar .navbar-toggler .navbar-toggler-icon {
  background-color: #6c7a86;
}
#landing_header_shell .navbar.header.navbar_expand {
  /* Keep pill shape when the mobile menu opens (do not go full-bleed) */
  background-color: #fff !important;
  border-radius: 1.5rem !important;
  max-height: calc(100vh - 1rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.06) !important;
}
#landing_header_shell .navbar.header.navbar_expand .navbar-nav .nav-item .nav-link {
  color: #61707d;
}
#landing_header_shell .navbar.header.navbar_expand .navbar-toggler .navbar-toggler-icon {
  background-color: #6c7a86;
}
@media (min-width: 992px) {
  #landing_header_shell .navbar.header.navbar_expand {
    max-height: none;
    overflow: visible;
    border-radius: 3em !important;
  }
}

.container_center {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display:block;
}

/* Landing pubbliche: lo sfondo del blocco resta a tutta pagina, il contenuto si ferma a 1200px. */
body.guest_public .container_fluid_col {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(7.5px, calc((100% - 1200px) / 2));
  padding-right: max(7.5px, calc((100% - 1200px) / 2));
}
body.guest_public .container_center {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
body.guest_public .footer_cols {
  max-width: min(80%, 1200px);
}

a {
  cursor:pointer !important;
  text-decoration: none !important;
}

.a-red {
  color: #c90000 !important;
  cursor:pointer !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out;
}

.a-red:hover {
  color: #ff0707 !important;
  transition: color 0.2s ease-in-out;
}

.table th {
    border-top: none
}

.overlay_white {
  background-color:#fff;
  opacity:0.7;
  transition: 0.5s ease-in-out;
}

.overlay_white:hover {
  background-color:#fff;
  opacity:0.4;
  transition: 0.5s ease-in-out;
}

.h-600 {
  height:600px;
}

.h-500 {
  height:500px;
}

.h-450 {
  height:450px;
}

.h-400 {
  height:400px;
}

.h-350 {
  height:350px;
}

.h-300 {
  height:300px;
}

.h-200 {
  height:200px;
}

.h-150 {
  height:150px;
}

.h100 {
  height:100px;
}

.h-50 {
  height:50px;
}

.h-40 {
  height:40px;
}

.h-30 {
  height:30px;
}

.section {
  padding: 70px 0
}

.fade_in {
  opacity: 0;
}

.bg_rounded {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 50px 50px
}

.bg_rounded_r {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: skewY(3deg);
  -webkit-transform: skewY(3deg);
  -moz-transform: skewY(3deg);
  transform-origin: top right;
  border-radius: 0 0 50px 50px
}

.bg_rounded_l {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  transform-origin: top left;
  border-radius: 0 0 50px 50px
}

.bg_rounded_title {
  margin: 0;
  padding: 100px 0;
  text-align: center;
}

.bg_gradient1 { /* Blue */
  background-image: linear-gradient(30deg, #006ede 0%, #01ddff 100%);
  background-image: -ms-linear-gradient(30deg, #006ede 0%, #01ddff 100%);
  background-image: -moz-linear-gradient(30deg, #006ede 0%, #01ddff 100%);
  background-image: -webkit-linear-gradient(30deg, #006ede 0%, #01ddff 100%);
}

.bg_gradient2 { /* Green */
  background-image: linear-gradient(30deg, #046c7a 0%, #14e9cc 100%);
  background-image: -ms-linear-gradient(30deg, #046c7a 0%, #14e9cc 100%);
  background-image: -moz-linear-gradient(30deg, #046c7a 0%, #14e9cc 100%);
  background-image: -webkit-linear-gradient(30deg, #046c7a 0%, #14e9cc 100%);
}

.bg_gradient3 { /* Dark Grey */
  background-image: linear-gradient(0deg, #293440 0%, #48586c 100%);
  background-image: -ms-linear-gradient(0deg, #293440 0%, #48586c 100%);
  background-image: -moz-linear-gradient(0deg, #293440 0%, #48586c 100%);
  background-image: -webkit-linear-gradient(0deg, #293440 0%, #48586c 100%);
}

.bg_gradient4 { /* Grey */
  background-image: linear-gradient(30deg, #405569 0%, #5c748a 100%);
  background-image: -ms-linear-gradient(30deg, #405569 0%, #5c748a 100%);
  background-image: -moz-linear-gradient(30deg, #405569 0%, #5c748a 100%);
  background-image: -webkit-linear-gradient(30deg, #405569 0%, #5c748a 100%);
}

.bg_gradient5 { /* Blue-Green */
  background-image: linear-gradient(30deg, #006ede 0%, #14e9cc 100%);
  background-image: -ms-linear-gradient(30deg, #006ede 0%, #14e9cc 100%);
  background-image: -moz-linear-gradient(30deg, #006ede 0%, #14e9cc 100%);
  background-image: -webkit-linear-gradient(30deg, #006ede 0%, #14e9cc 100%);
}

.bg_gradient6 { /* Purple */
  background-image: linear-gradient(30deg, #910c9d 0%, #d9509e 100%);
  background-image: -ms-linear-gradient(30deg, #910c9d 0%, #d9509e 100%);
  background-image: -moz-linear-gradient(30deg, #910c9d 0%, #d9509e 100%);
  background-image: -webkit-linear-gradient(30deg, #910c9d 0%, #d9509e 100%);
}

.bg_gradient7 { /* Light grey */
  background-image: linear-gradient(30deg, #81a5c7 0%, #cddce9 100%);
  background-image: -ms-linear-gradient(30deg, #81a5c7 0%, #cddce9 100%);
  background-image: -moz-linear-gradient(30deg, #81a5c7 0%, #cddce9 100%);
  background-image: -webkit-linear-gradient(30deg, #81a5c7 0%, #cddce9 100%);
}

.bg_gradient8 { /* Water */
  background: rgb(19,88,228);
  background: -moz-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 18%, rgba(52,218,255,1) 39%, rgba(86,216,255,1) 46%, rgba(56,165,228,1) 74%, rgba(8,75,158,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 18%, rgba(52,218,255,1) 39%, rgba(86,216,255,1) 46%, rgba(56,165,228,1) 74%, rgba(8,75,158,1) 100%);
  background: linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 18%, rgba(52,218,255,1) 39%, rgba(86,216,255,1) 46%, rgba(56,165,228,1) 74%, rgba(8,75,158,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1358e4",endColorstr="#084b9e",GradientType=1);
}

.bg_gradient9 { /* Rainbow */
  background: rgb(19,88,228);
  background: -moz-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 14%, rgba(78,195,230,1) 23%, rgba(34,218,224,1) 34%, rgba(40,228,190,1) 42%, rgba(112,228,91,1) 53%, rgba(221,213,0,1) 65%, rgba(215,186,81,1) 75%, rgba(224,101,165,1) 87%, rgba(158,8,113,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 14%, rgba(78,195,230,1) 23%, rgba(34,218,224,1) 34%, rgba(40,228,190,1) 42%, rgba(112,228,91,1) 53%, rgba(221,213,0,1) 65%, rgba(215,186,81,1) 75%, rgba(224,101,165,1) 87%, rgba(158,8,113,1) 100%);
  background: linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 14%, rgba(78,195,230,1) 23%, rgba(34,218,224,1) 34%, rgba(40,228,190,1) 42%, rgba(112,228,91,1) 53%, rgba(221,213,0,1) 65%, rgba(215,186,81,1) 75%, rgba(224,101,165,1) 87%, rgba(158,8,113,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1358e4",endColorstr="#9e0871",GradientType=1);
}

.bg_gradient10 { /* Lime */
  background: rgb(19,88,228);
  background: -moz-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 26%, rgba(78,195,230,1) 40%, rgba(34,218,224,1) 53%, rgba(40,228,190,1) 68%, rgba(112,228,91,1) 81%, rgba(251,255,0,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 26%, rgba(78,195,230,1) 40%, rgba(34,218,224,1) 53%, rgba(40,228,190,1) 68%, rgba(112,228,91,1) 81%, rgba(251,255,0,1) 100%);
  background: linear-gradient(90deg, rgba(19,88,228,1) 0%, rgba(31,172,254,1) 26%, rgba(78,195,230,1) 40%, rgba(34,218,224,1) 53%, rgba(40,228,190,1) 68%, rgba(112,228,91,1) 81%, rgba(251,255,0,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1358e4",endColorstr="#fbff00",GradientType=1);
}

.bg_gradient11 { /* Red-Yellow */
  background: rgb(213,5,98);
  background: -moz-linear-gradient(90deg, rgba(213,5,98,1) 0%, rgba(255,194,0,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(213,5,98,1) 0%, rgba(255,194,0,1) 100%);
  background: linear-gradient(90deg, rgba(213,5,98,1) 0%, rgba(255,194,0,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d50562",endColorstr="#ffc200",GradientType=1);
}
/* -- COVER ------------------------------------------------------------------*/

.page-header {
    height: 95vh;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
}

.page-header,
.page-header .page-header-image {
    background-position: 50%;
    background-size: cover
}

.page-header .page-header-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1
}

.page-header .content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 0 15px;
    width: 100%;
    max-width: 880px
}

.page-header .carousel .carousel-indicators {
    bottom: 60px
}

.page-header .title,
.page-header>.container_center {
    color: #fff
}

.page-header.header-small {
    height: 65vh;
    min-height: 65vh
}

.page-header .iframe-container iframe {
    width: 100%;
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, .56), 0 4px 25px 0 rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2)
}

.header-filter {
    position: relative
}

.header-filter:after,
.header-filter:before {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    left: 0;
    top: 0;
    content: ""
}

.header-filter:before {
    /*background: rgba(0, 0, 0, .2)*/
}

.header-filter .container_center {
    z-index: 2;
    position: relative
}

/* Home index hero: niente strato pseudo sopra la cover animata */
.page-header.page-header--index-hero:before,
.page-header.page-header--index-hero:after {
    display: none !important;
}

/* Animated WaveHero cover (from Grok canvas) — replaces cover.jpg */
.page-header--index-hero {
  position: relative;
  z-index: 1;
  background-color: #006ede;
}
.mokapen-cover-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.mokapen-cover-hero__layer {
  position: absolute;
  inset: 0;
  background-size: 280% 280%;
  background-repeat: no-repeat;
}
.mokapen-cover-hero__layer--b {
  opacity: 0.58;
  mix-blend-mode: soft-light;
  background-size: 320% 320%;
}
.mokapen-cover-hero__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.38;
  filter: blur(72px);
}
.mokapen-cover-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
.mokapen-cover-hero__orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mokapen-cover-hero__lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.45;
}
.page-header--index-hero > .container_center {
  position: relative;
  z-index: 3;
}

.cover_blur {
  transform: scale(1.05);
  filter: blur(8px);
  -webkit-filter: blur(8px);
  -moz-filter: blur(8px);
  -o-filter: blur(8px);
  -ms-filter: blur(8px);
}

.carousel_box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  text-align: center;
}

.img_overlay_2 {
  background-size:cover;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
  width:100%;
  height: 100%;
  object-fit: cover;
}

.img_overlay_4 {
  background-size:cover;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
  width:100%;
  height: 100%;
  object-fit: cover;
}

.img_overlay_6 {
  background-size:cover;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);
  width:100%;
  height: 100%;
  object-fit: cover;
}

.img_overlay_8 {
  background-size:cover;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.8);
  width:100%;
  height: 100%;
  object-fit: cover;
}

.cover_title {
  padding-bottom:12px;
  font-size: 2.5rem;
  font-weight: 600;
}

.cover_subtitle {
  color: #fff;
  font-size: 30px;
  font-weight: 300
}

.cover_title .title_border {
  border-bottom: 2px solid #fff;
  padding-bottom:16px;
}

/*
 * Solo hero index: linea scura che “prende” il tono dallo sfondo (foto/verde/blu).
 * multiply + nero semi-trasparente scurisce ciò che sta dietro senza fissare un colore.
 */
.page-header--index-hero .cover_title .title_border {
  position: relative;
  border-bottom: none;
}

.page-header--index-hero .cover_title .title_border::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50%;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.32);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Home cover: rotating tagline — vertical slide; verbs right-aligned inside the slot (no glass box) */
.index-tagline-marquee {
  vertical-align: middle;
}

.index-tagline-marquee__viewport {
  display: block;
  overflow: hidden;
  height: 1.35em;
  line-height: 1.35;
  width: max-content;
}

.index-tagline-marquee__track {
  display: flex;
  flex-direction: column;
  height: 300%;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

/* Solo prefers-reduced-motion: alternanza A/B senza terza riga */
.index-tagline-marquee__track.index-tagline-marquee__track--reduced {
  height: 200%;
  transition: none;
}

.index-tagline-marquee__track.index-tagline-marquee__track--reduced.is-next {
  transform: translateY(-50%);
}

.index-tagline-marquee__track.is-at-b {
  transform: translateY(calc(-100% / 3));
}

.index-tagline-marquee__track.is-at-a2 {
  transform: translateY(calc(-200% / 3));
}

.index-tagline-marquee__track.index-tagline-marquee__track--no-trans {
  transition: none !important;
}

.index-tagline-marquee__line {
  flex: 0 0 calc(100% / 3);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.index-tagline-marquee__track.index-tagline-marquee__track--reduced .index-tagline-marquee__line {
  flex-basis: 50%;
}

.index-tagline-marquee__track.index-tagline-marquee__track--reduced .index-tagline-marquee__line--repeat {
  display: none;
}

/*
 * Verbo ruotante: stesso tono della cover, versione scura.
 */
.page-header--index-hero .cover_title .index-tagline-marquee__line {
  background: none;
  background-image: none;
  color: var(--cover-verb-ink, #064a8a);
  -webkit-text-fill-color: var(--cover-verb-ink, #064a8a);
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.15),
    0 1px 8px rgba(0, 0, 0, 0.2);
  paint-order: stroke fill;
}

@media (prefers-contrast: more) {
  .page-header--index-hero .cover_title .index-tagline-marquee__line {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 1), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
  }
}

.index-tagline-marquee__suffix {
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  .index-tagline-marquee__track {
    transition: none;
  }
}

.cover_subtitle .subtitle_border {
  border-top: 2px solid #fff;
  padding-top:12px;
}

/* --/ COVER -----------------------------------------------------------------*/


/* Home index: doppio carosello loghi (trust-orgs) */
.index-logo-marquee {
  overflow: hidden;
  padding: 0.5rem 0.5rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.index-logo-marquee--lane-a {
  padding-bottom: 0.15rem;
}

.index-logo-marquee--lane-b {
  padding-top: 0.15rem;
}

.index-logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 1rem;
  padding: 0.35rem 0.25rem;
}

.index-logo-marquee--lane-a .index-logo-marquee__track {
  animation: index-logo-marquee-scroll 120s linear infinite;
}

.index-logo-marquee--lane-b .index-logo-marquee__track {
  animation: index-logo-marquee-scroll 140s linear infinite;
}

.index-logo-marquee__item {
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
}

@keyframes index-logo-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .index-logo-marquee--lane-a .index-logo-marquee__track,
  .index-logo-marquee--lane-b .index-logo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}


/* -- INTRO ------------------------------------------------------------------*/

.main {
  background: #fff;
  position: relative;
  z-index: 3;
}

.main-raised {
  margin: -60px 80px 0;
  border-radius: 2em;
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .05), 0 6px 30px 5px rgba(0, 0, 0, .1), 0 8px 10px -5px rgba(0, 0, 0, .1)
}

/* Index: cardbox badges sale nella cover (titolo dentro la cover) */
#intro {
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 5;
}
#intro .main.main-raised.cardbox {
  margin-top: -80px !important;
  position: relative;
  z-index: 5;
}
@media (max-width: 991.98px) {
  #intro .main.main-raised.cardbox {
    margin-top: -80px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

.main_title {
  font-size: 2.5em;
  font-weight: 200
}

.main_subtitle {
  font-size: 26px;
  line-height: 34px;
  font-weight: 300
}

.main_text {
  font-size: 18px;
  line-height: 30px;
  font-weight: 300
}

/* --/ INTRO -----------------------------------------------------------------*/


/* -- FOOTER -----------------------------------------------------------------*/

.footer_cols {
  max-width: 80%;
  margin: 1em auto
}

.footer_col {
  margin-bottom: 2em
}

.footer_col .col_title {
  color: #a2adb5;
  font-weight: bold;
  font-size: 1.15em;
  margin-bottom: 1.25em;
}

.footer_col .col_item {
  color: #fff;
  display: block;
  margin-bottom: 1em
}

/* --/ FOOTER ----------------------------------------------------------------*/


/* -- OTHER ------------------------------------------------------------------*/

.btn_white_rounded {
  border-radius: 50px;
  color: #61707d;
  text-align: center;
  font-size: 1.25rem;
  padding: .75rem 2rem;
  background-color: #fff;
  transition: 0.2s ease-in-out;
  -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
  -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
  box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
}

.btn_white_rounded:hover {
  color: #47a8e0;
  transition: 0.2s ease-in-out;
  -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
  -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
  box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
}

.btn_darkblue_rounded {
  border-radius: 50px;
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  padding: .75rem 2rem;
  background-color: #135da8;
  transition: 0.2s ease-in-out;
  -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
  -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
  box-shadow: 0px 0px 15px 5px rgba(0,0,0, .2);
}

.btn_darkblue_rounded:hover {
  color: #fff;
  background-color: #247dd6;
  transition: 0.2s ease-in-out;
  -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
  -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
  box-shadow: 0px 0px 15px 5px rgba(0,0,0, .4);
}

.btn_white_rounded.shadow1_top,
.btn_darkblue_rounded.shadow1_top {
  -webkit-box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.1);
}

.btn_white_rounded.shadow1_top:hover,
.btn_darkblue_rounded.shadow1_top:hover {
  -webkit-box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 20px 39px 0px rgba(0,0,0,0.2);
}

/* Cover demo CTA: same dark ink as verb, tracks live cover palette */
.page-header--index-hero a.btn_darkblue_rounded {
  background-color: var(--cover-verb-ink, #064a8a);
  color: #fff;
}
.page-header--index-hero a.btn_darkblue_rounded:hover {
  background-color: var(--cover-demo-btn-hover, #247dd6);
  color: #fff;
}

/* --/ OTHER -----------------------------------------------------------------*/


/* -- MEDIA QUERIES ----------------------------------------------------------*/

/* Very Very Small devices */
@media (max-width: 767.98px) {

  .cover_title {
    padding-bottom:12px;
    font-size: 1rem;
    font-weight: 300;
  }

  .cover_subtitle {
    font-size: 1.5rem;
    font-weight: 300;
  }

  .cover_title .title_border {
    border-bottom: none;
    padding-bottom:16px;
  }

  .cover_subtitle .subtitle_border {
    border-top: none;
    padding-top:12px;
  }

}

/* Partner program landing */
.partner-program-hero-badge {
  letter-spacing: 0.06em;
}

/* Masonry directory partner (come experts): colonne responsive */
.partner-program-partners-page .partner-program-partners-grid-item.w-33 {
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .partner-program-partners-page .partner-program-partners-grid-item.w-33 {
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  .partner-program-partners-page .partner-program-partners-grid-item.w-33 {
    width: 100% !important;
    max-width: 380px;
  }
}

/* Card impilate con avatar/badge sopra (Partner tiers, Referral steps, altre landing): riusabile ovunque */
.partner-program-page .landing-stacked-card {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

@media (min-width: 992px) {
  .partner-program-page .landing-stacked-card--level-1 {
    min-height: 300px;
  }

  .partner-program-page .landing-stacked-card--level-2 {
    min-height: 330px;
  }

  .partner-program-page .landing-stacked-card--level-3 {
    min-height: 360px;
  }
}

/* Numero step nelle card impilate (referral ecc.): niente inline style in Blade */
.partner-program-page .landing-stacked-card-step-num {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

/* Motion utilities (landing; reusable on other pages) */
@keyframes motion-fade-up-kf {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.motion-fade-up {
  animation: motion-fade-up-kf 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-fade-up-delay-1 {
  animation-delay: 0.1s;
}

.motion-fade-up-delay-2 {
  animation-delay: 0.2s;
}

.motion-fade-up-delay-3 {
  animation-delay: 0.32s;
}

.motion-reveal-scroll {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.motion-reveal-scroll--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.motion-stagger-1 {
  transition-delay: 0.05s;
}

.motion-stagger-2 {
  transition-delay: 0.12s;
}

.motion-stagger-3 {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .motion-fade-up,
  .motion-fade-up-delay-1,
  .motion-fade-up-delay-2,
  .motion-fade-up-delay-3 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-reveal-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* Features mega menu: backdrop blur (desktop), Stripe-style row arrow */
@media (min-width: 992px) {
  .features-mega-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1025;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .features-mega-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body.features-mega-open #landing_header_shell {
    z-index: 1030;
  }

  .navbar .mega-dropdown.show > .dropdown-menu.mega-menu {
    z-index: 3060;
    max-height: calc(100vh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .features-mega-item__arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.9rem;
  }

  .features-mega-item:hover .features-mega-item__arrow,
  .features-mega-item:focus .features-mega-item__arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar .dropdown-menu.mega-menu .features-mega-item:hover .features-mega-item__title,
  .navbar .dropdown-menu.mega-menu .features-mega-item:focus .features-mega-item__title {
    color: #2196f3 !important;
  }
}

@media (max-width: 991.98px) {
  .features-mega-backdrop {
    display: none !important;
  }

  /* Mega menu in hamburger: allow vertical scroll when the list is long */
  .navbar-collapse .dropdown-menu.mega-menu {
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {

  body.no_scroll {
    overflow: hidden;
  }

  .main-raised {
    margin-left: 10px;
    margin-right: 10px;
  }

  .cover_title {
    padding-bottom:12px;
    font-size: 2rem;
    font-weight: 300;
  }

  .cover_subtitle {
    font-size: 1.5rem;
    font-weight: 300;
  }

  .cover_title .title_border {
    border-bottom: none;
    padding-bottom:16px;
  }

  .cover_subtitle .subtitle_border {
    border-top: none;
    padding-top:12px;
  }

  .main_title {
    font-size: 1.5rem;
    font-weight: 300
  }

  .main_subtitle {
    font-size: 1.2rem;
  }

  .footer_cols {
    max-width: 80%;
    margin: 1em auto;
    text-align: center;
  }

}


.page-header--index-hero .cover_subtitle.font22 {
  font-size: 1.15rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .page-header--index-hero .cover_title {
    font-size: 2.35rem;
    line-height: 1.25;
  }
}

/* --/ MEDIA QUERIES ---------------------------------------------------------*/

/* Product page HTML previews (landing / show_feature) */
.product-mock {
  font-size: 0.92rem;
  line-height: 1.45;
  pointer-events: none;
  user-select: none;
}

/* Interactive product mocks (language switcher, gallery, …) */
.product-mock--gallery,
.product-mock--list,
.product-mock--forms-languages {
  pointer-events: auto;
  user-select: auto;
}

/* HTML mocks. Only kanban is laid out wider and zoomed to fit: other mocks stay at the column size. */
.product-media-html {
  container-type: inline-size;
  container-name: mockfit;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.cardbox.shadow1_top > .product-media-html > .product-mock {
  box-shadow: none !important;
}
.product-media-html > .product-mock {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  /* Il fondo della card è grigio: negli angoli arrotondati spunta sotto la tabella bianca. */
  background-color: #fff !important;
  display: flex;
  flex-direction: column;
}
.product-media-html > .product-mock > .table-responsive,
.product-mock .table-responsive {
  flex: none;
  overflow: hidden !important;
  background-color: #fff;
}
.product-media-html:has(.table-responsive) > .product-mock {
  width: 100% !important;
  max-width: 100% !important;
  zoom: 1 !important;
}
.product-mock-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.product-mock-table th,
.product-mock-table td {
  white-space: normal !important;
  word-break: break-word;
}

@container mockfit (max-width: 939px) {
  .product-media-html > .product-mock--kanban {
    width: 940px !important;
    max-width: none !important;
    min-width: 0 !important;
    zoom: calc(100cqi / 940px);
  }
}

.product-mock-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.product-mock-tile {
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.product-mock-tile:hover {
  border-color: rgba(71, 168, 224, 0.35);
}

.product-mock-tile.is-active {
  border-color: #47a8e0;
}

/* Booking calendar mock (landing only — no #f_calendar ids, no pointer on static slots) */
.product-mock-cal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 19.5rem;
}

.product-mock-cal-grid--compact {
  max-width: 100%;
}

.product-mock-cal-weekday {
  width: 14.28%;
  text-align: center;
  font-size: 0.7rem;
  color: #97aab8;
  padding: 0.25rem 0;
}

.product-mock-cal-day {
  width: 2.35rem;
  height: 2.35rem;
  line-height: 2.35rem;
  margin: 0.15rem;
  border-radius: 50%;
  text-align: center;
  font-size: 0.82rem;
  color: #3d4f5f;
  cursor: default;
  flex-shrink: 0;
}

.product-mock-cal-day--selected {
  background-color: #47a8e0;
  color: #fff;
  font-weight: 700;
}

.product-mock-cal-day--empty {
  visibility: hidden;
}

.product-mock-slot {
  display: block;
  width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  background: #eef2f5;
  color: #3d4f5f;
  cursor: default;
  user-select: none;
}

.product-mock-slot--active {
  background: #47a8e0;
  color: #fff;
  font-weight: 600;
}

.product-mock-tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.product-mock-field:last-child {
  border-bottom: 0 !important;
}

.product-mock-pill {
  background: #eef2f5;
  color: #5a6570;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
}

.product-mock-pill__label {
  display: inline-block;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.product-mock-pill.is-active {
  background: #47a8e0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(71, 168, 224, 0.35);
}

.product-mock-table th,
.product-mock-table td {
  white-space: nowrap;
}

.product-mock .avatar_sm {
  box-sizing: border-box;
  width: 2.5rem !important;
  min-width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0.4rem 0.28rem !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.02em;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.product-mock-table th:first-child,
.product-mock-table td:first-child {
  padding-left: 1.25rem;
}

.product-mock-table th:last-child,
.product-mock-table td:last-child {
  padding-right: 1.25rem;
}

.product-mock-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-mock [data-preview].is-pulse,
.product-mock-body.is-pulse,
.product-mock [data-table].is-pulse {
  animation: productMockPulse 0.35s ease;
}

@keyframes productMockPulse {
  from { opacity: 0.55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  .product-mock-table {
    font-size: 0.78rem;
  }

  .product-mock-pill__label {
    max-width: 6.5rem;
  }
}

.product-mock {
  max-width: 100%;
  min-width: 0;
}

.product-mock-week {
  display: flex;
  max-width: 100%;
  min-width: 0;
  min-height: 26rem;
  background: #fff;
}

.product-mock-week__gutter {
  width: 3.1rem;
  flex-shrink: 0;
  border-right: 1px solid #eef2f5;
}

.product-mock-week__col {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid #eef2f5;
}

.product-mock-week__col:last-child {
  border-right: 0;
}

.product-mock-week__col.is-today {
  background: rgba(71, 168, 224, 0.06);
}

.product-mock-week__head {
  min-height: 3.1rem;
}

.product-mock-week__hour,
.product-mock-week__cell {
  min-height: 2.45rem;
  border-top: 1px solid #eef2f5;
  padding: 0.12rem;
}

.product-mock-week__hour {
  font-size: 0.65rem;
  padding: 0.2rem 0.25rem 0;
}

.product-mock-event {
  border-radius: 0.4rem;
  padding: 0.15rem 0.3rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #3d4f5f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-mock-modal-backdrop {
  background: #eef2f5;
  padding: 1rem;
}

.product-mock-modal {
  background: #fff;
  border-radius: 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* Landing mock: real Mokapen kanban, without the in-app 100vh board */
.product-mock--kanban {
  pointer-events: none;
  user-select: none;
}

.product-mock .top_bar {
  width: 100%;
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 0.65rem 0.85rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
}

.product-mock .top_bar > h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

.product-mock--kanban .top_bar {
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 0.65rem 0.85rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  white-space: nowrap;
}

.product-mock--kanban .top_bar > h4 {
  font-size: 1rem;
  flex: 0 1 auto;
  white-space: nowrap;
}

.product-mock--kanban .top_bar .btn_toggle {
  font-size: 0.8rem;
  padding: 0.4em 0.65em;
}

.product-mock--kanban .top_bar .btn_brand,
.product-mock--kanban .top_bar .btn_topbar {
  font-size: 0.8rem;
  white-space: nowrap;
}

.product-mock--kanban .kanban {
  height: auto;
  min-height: 22rem;
  overflow: hidden;
  width: 100% !important;
  background: #eef2f5;
  padding-top: 0.35rem;
}

.product-mock--kanban .k_board {
  width: 100%;
}

.product-mock--kanban .k_bucket_sortable {
  flex: 1 1 0;
  min-width: 0;
}

.product-mock--kanban .k_bucket_col {
  width: 100%;
  max-width: none;
  max-height: none;
}

.product-mock--kanban .k_card_check,
.product-mock--kanban .k_card_option {
  opacity: 1;
}

.product-mock--kanban .k_card,
.product-mock--kanban .k_card_body,
.product-mock--kanban .k_bucket_header,
.product-mock--kanban .k_header_title {
  white-space: normal;
}

.product-mock--kanban .k_card_title {
  max-width: 100%;
}

.product-mock--kanban .k_card_body:has(.k_card_check) .k_card_header {
  padding-right: 3rem;
}

/* Reusable Happy chat stage (home + AI page) */
.happy-chat {
  background: #fff;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .ai-skill-row > [class*="col-"] {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.ai-skill-row .btn {
  align-self: flex-start;
  width: auto;
}

.happy-chat__head {
  border-radius: 0 0 2em 2em;
  padding: 0.85rem 1rem 0.75rem;
}

.happy-head {
  border-radius: 0 0 1em 1em;
}

.happy-chat__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.happy-chat__status {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #7dffa8;
  display: inline-block;
  margin-right: 0.35rem;
}

.happy-chat__tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.happy-chat__tab {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.75rem;
  height: 1.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.happy-chat__tab.is-active {
  background: #fff;
  color: #1f6fbf;
}

.happy-chat__body {
  min-height: 16.5rem;
  padding: 1rem 1rem 0.25rem;
  background: #f7f9fb;
}

.happy-chat__scene {
  display: none;
}

.happy-chat__scene.is-on {
  display: block;
}

.happy-chat__msg {
  opacity: 0;
}

.happy-chat__scene.is-on .happy-chat__msg {
  animation: happy-chat-in 0.45s ease forwards;
}

.happy-chat__scene.is-on .happy-chat__msg--user {
  animation-delay: 0.15s;
}

.happy-chat__scene.is-on .happy-chat__dots {
  animation: happy-chat-dots 0.85s ease forwards;
}

.happy-chat__scene.is-on .happy-chat__msg--agent {
  animation-delay: 0.55s;
}

.happy-chat__scene.is-on .happy-chat__msg--chip {
  animation-delay: 1.35s;
}

.happy-chat__bubble {
  display: inline-block;
  max-width: 92%;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.happy-chat__bubble--user {
  background: #47a8e0;
  color: #fff;
  border-radius: 0.85rem 0.85rem 0.25rem 0.85rem;
}

.happy-chat__bubble--agent {
  background: #fff;
  color: #243140;
  border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
  box-shadow: 0 1px 4px rgba(20, 40, 60, 0.06);
}

.happy-chat__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
  padding: 0 0.7rem;
}

.happy-chat__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8aa0b3;
  animation: happy-chat-bounce 1s infinite;
}

.happy-chat__dot:nth-child(2) { animation-delay: 0.15s; }
.happy-chat__dot:nth-child(3) { animation-delay: 0.3s; }

.happy-chat__chip {
  display: inline-flex;
  align-items: center;
  background: #e7f6ee;
  color: #1d7a45;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.happy-chat__composer {
  border-top: 1px solid #e9eef2;
  color: #8aa0b3;
  font-size: 0.86rem;
  padding: 0.75rem 1rem;
  background: #fff;
}

.happy-chat__caret {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: #47a8e0;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: happy-chat-caret 1s steps(1) infinite;
}

button[data-happy-target] {
  border: 0;
  cursor: pointer;
}

button[data-happy-target]:not(.is-active) {
  width: calc(100% - 2.6rem) !important;
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}

button[data-happy-target].is-active {
  width: 100% !important;
  color: #fff !important;
  box-shadow: 0px 20px 39px 0px rgba(0, 0, 0, 0.1);
}

button[data-happy-target].is-active i {
  color: #fff !important;
}

button[data-happy-scene="parla"].is-active { background-color: #1d6fa5 !important; }
button[data-happy-scene="auto"].is-active { background-color: #0c7a62 !important; }
button[data-happy-scene="analizza"].is-active { background-color: #8a2a6e !important; }
button[data-happy-scene="trova"].is-active { background-color: #0a5a62 !important; }
button[data-happy-scene="arricchisci"].is-active { background-color: #5b4a8a !important; }

.happy-chat--tall {
  max-width: 34rem;
}

.happy-chat--tall .happy-chat__body {
  min-height: 28rem;
}

.happy-chat__result {
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.75rem;
  box-shadow: 0 1px 4px rgba(20, 40, 60, 0.06);
  opacity: 0;
}

.happy-chat__line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #eef2f5;
}

.happy-chat__line:last-child {
  border-bottom: 0;
}

.happy-chat__mark {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.happy-chat__mark-spin,
.happy-chat__mark-ok {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
}

.happy-chat__mark-spin { color: #47a8e0; }
.happy-chat__mark-ok { color: #06ddc7; opacity: 0; }

.happy-chat__scene.is-on .happy-chat__result {
  animation: happy-chat-in 0.45s ease forwards;
  animation-delay: 0.85s;
}

.happy-chat__scene.is-on .happy-chat__mark-spin {
  animation: happy-mark-hide 0.25s ease forwards;
}

.happy-chat__scene.is-on .happy-chat__mark-ok {
  animation: happy-chat-in 0.25s ease forwards;
}

.happy-chat__scene.is-on .happy-chat__step:nth-child(1) .happy-chat__mark-spin,
.happy-chat__scene.is-on .happy-chat__step:nth-child(1) .happy-chat__mark-ok { animation-delay: 0.95s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(2) .happy-chat__mark-spin,
.happy-chat__scene.is-on .happy-chat__step:nth-child(2) .happy-chat__mark-ok { animation-delay: 1.15s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(3) .happy-chat__mark-spin,
.happy-chat__scene.is-on .happy-chat__step:nth-child(3) .happy-chat__mark-ok { animation-delay: 1.35s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(4) .happy-chat__mark-spin,
.happy-chat__scene.is-on .happy-chat__step:nth-child(4) .happy-chat__mark-ok { animation-delay: 1.55s; }

.happy-chat__flow {
  margin: 0.15rem 0 0.75rem;
}

.happy-chat__step {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: #243140;
  opacity: 0;
}

.happy-chat__step-n {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #e7f6ee;
  color: #1d7a45;
  font-weight: 700;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.happy-chat__scene.is-on.has-flow .happy-chat__msg--chip {
  animation-delay: 1.7s;
}

.happy-chat__scene.is-on .happy-chat__step {
  animation: happy-chat-in 0.4s ease forwards;
}

.happy-chat__scene.is-on .happy-chat__step:nth-child(1) { animation-delay: 0.9s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(2) { animation-delay: 1.1s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(3) { animation-delay: 1.3s; }
.happy-chat__scene.is-on .happy-chat__step:nth-child(4) { animation-delay: 1.5s; }

.happy-pill {
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border: 0;
}

@keyframes happy-mark-hide {
  to { opacity: 0; }
}

.happy-flow__step {
  position: relative;
  animation: happy-flow-pulse 4.2s ease infinite;
}

.happy-flow__step:nth-child(1) { animation-delay: 0s; }
.happy-flow__step:nth-child(2) { animation-delay: 1.4s; }
.happy-flow__step:nth-child(3) { animation-delay: 2.8s; }

.happy-flow__step + .happy-flow__step {
  margin-top: 0.85rem;
}

.happy-flow__step + .happy-flow__step::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: -0.85rem;
  height: 0.85rem;
  border-left: 2px dashed #b7c6d2;
}

.happy-enrich__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e9eef2;
  animation: happy-chat-in 0.55s ease both;
}

.happy-enrich__row:nth-child(1) { animation-delay: 0.15s; }
.happy-enrich__row:nth-child(2) { animation-delay: 0.7s; }
.happy-enrich__row:nth-child(3) { animation-delay: 1.25s; }

.happy-enrich__row:last-child {
  border-bottom: 0;
}

@keyframes happy-flow-pulse {
  0%, 100% { transform: none; box-shadow: none; }
  35% { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 40, 60, 0.08); }
}

@keyframes happy-chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes happy-chat-dots {
  0% { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
  14% { opacity: 1; max-height: 2.2rem; margin-bottom: 0.65rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  72% { opacity: 1; max-height: 2.2rem; margin-bottom: 0.65rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  100% { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes happy-chat-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes happy-chat-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .happy-chat__msg,
  .happy-chat__dots,
  .happy-chat__dot,
  .happy-chat__caret {
    animation: none !important;
  }

  .happy-chat__msg {
    opacity: 1 !important;
    transform: none !important;
  }

  .happy-chat__dots {
    display: none !important;
  }

  .happy-chat__step,
  .happy-chat__result,
  .happy-flow__step,
  .happy-enrich__row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .happy-chat__mark-spin { display: none; }
  .happy-chat__mark-ok { opacity: 1 !important; }
}

