/* Carosello: copia da /barra/style.css */

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}
 
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #ffffff;
  color: #fff;
  overflow-x: hidden;
}

.carousel-title {
  margin-left: 42px;
  margin-bottom: 0.3em;
  margin-top: 0.3em;
  font-size: 1.4em;
  font-family: 'Poppins', Arial, sans-serif;
  color: #3d3d3d;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0 1.6rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,1.3,.5,1);
  will-change: transform;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.carousel-card {
  background: #fff;
  border-radius: 42px;
  box-shadow:
    0 1.5px 4px rgba(59,210,201,0.12),
    0 4px 12px rgba(0,0,0,0.10),
    0 8px 16px rgba(0,0,0,0.07),
    0 1px 2px rgba(59,210,201,0.08);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  overflow: hidden;
  border: none;
  min-width: 320px;
  height: 150px;
  max-width: 100%;
  padding: 0;
  transition: box-shadow 0.3s, transform 0.4s;
  text-decoration: none;
  color: inherit;
}
.carousel-card.active {
  box-shadow:
    0 3px 12px rgba(59,210,201,0.15),
    0 8px 20px rgba(0,0,0,0.15),
    0 12px 24px rgba(0,0,0,0.09),
    0 1.5px 4px rgba(59,210,201,0.10);
}

.carousel-card .carousel-img {
  width: 80px;
  min-width: 0;
  height: 80px;
  object-fit: cover;
  align-self: center;
  border-radius: 16px;
  margin: 18px;
  background: #fff;
  display: block;
}

.carousel-card .carousel-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 12px 18px 12px;
  color: #222;
  background: none;
  align-items: flex-start;
  text-align: left;
}

.carousel-card .carousel-content h2 {
  margin: 0 0 0.3em 0;
  font-size: 1.2rem;
  font-family: 'Poppins', Arial, sans-serif;
  color: #222;
}
.carousel-card .carousel-content p {
  margin: 0;
  font-size: 1em;
  opacity: 0.85;
  color: #222;
}

.card-overlay {
  background: none !important;
  padding: 0;
  position: static;
  color: inherit;
  box-shadow: none;
}

@media (min-width: 700px) {
  .carousel-card {
    min-width: 480px;
    max-width: 900px;
  }
  .carousel-card .carousel-img {
    width: 80px;
    min-width: 0px;
    height: 80px;
    border-radius: 16px;
    margin: 18px;
    align-self: center;
  }
  .carousel-card .carousel-content {
    padding: 18px 18px 18px 18px;
  }
}

.card-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center; 
}

.static-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(59, 210, 201, 0.15);
  transition: box-shadow 0.3s;
  padding: 18px 12px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.static-card .img-left {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(59, 210, 201, 0.10);
}

.static-card h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.2rem;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.static-card .text-center {
  text-align: center;
}

.static-card .oval-borders {
  border-radius: 18px;
  overflow: hidden;
}

.static-card.static-card-horizontal {
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

.static-card-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
}

.static-card.static-card-horizontal .img-left {
  max-width: 220px;
  width: 100%;
  height: auto;
  align-self: center;
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(59, 210, 201, 0.10);
}

@media (max-width: 700px) {
  .static-card.static-card-horizontal {
    flex-direction: column;
    align-items: center;
  }
  .static-card-text {
    padding-right: 0;
    padding-bottom: 16px;
  }
  .static-card.static-card-horizontal .img-left {
    max-width: 100%;
  }
  .carousel-card {
    flex-direction: row-reverse;
    min-width: 320px;
    max-width: 100%;
    margin: 0;
  }
  .carousel-track {
    padding-left: 6px;
    padding-right: 6px;
    gap: 12px;
  } 
  .carousel-card .carousel-img {
    width: 80px;
    height: 80px;
    margin: 4px;
    height: calc(100% - 8px);
    border-radius: 40px;
    align-self: center;
  }
}

.carousel-card:hover {
  text-decoration: none;
  color: inherit;
  transform: scale(1.02);
}

.carousel-card:focus {
  outline: 2px solid #3bd2c9;
  outline-offset: 2px;
}

.carousel-card,
.static-card {
  border: 3px solid #3bd2c9;
}

.carousel-section {
  position: relative;
  margin-bottom: -1rem;
}
.carousel-pill {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 10;
  background: #30ada5;
  color: #ffffff;
  border: 3.5px solid #3bd2c9;
  border-radius: 40px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.45em;
  font-weight: 1000;
  padding: 0.45em 2.2em;
  box-shadow: 0 2px 12px rgba(59,210,201,0.13);
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 700px) {
  .carousel-pill {
    left: 2.8rem;
    top: -1.25rem;
    font-size: 1.15em;
    padding: 0.32em 1.3em;
  }
}
