:root {
  --slide-number: 4;
}

html {
  scroll-behavior: smooth;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1480px;
  overflow: hidden;
  padding: 20px 0;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  flex: 0 0 calc((100% / var(--slide-number)) - 20px);
  min-width: calc((100% / var(--slide-number)) - 20px);
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 10px;
  text-align: left;
  border-color: #e74c3c;
  border-width: 1px;
  border-style: solid;
  border-radius: 15px;
}

.quote {
  position: relative;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #333;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.quote > span { /** :first-child */
  width: 100%;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.quote::before {
  content: '"';
  font-size: 60px;
  position: absolute;
  color: #e74c3c;
  font-family: Georgia, serif;
}

.quote::before {
  top: -15px;
  left: 0px;
}
/**
.quote::after{
  /* questo serve per posizionare il logo * /
  content: "";
  top: 0px;
  right: 0px;
  position: absolute;
  background-color: #e74c3c;
  border-radius: 50%;
  height: 70px;
  width: 70px;
}
*/

.c_logo {
  /* questo serve per posizionare il logo */
  position: relative;
  width: 100%;
}

.c_logo > img {
    background-color: white;
    border-radius: 50%;
    height: 120px;
    position: absolute;
    right: -30px;
    top: -365px;
    width: 120px;
    border: 1px solid #e74c3c;
}

.author, .role {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}
/*
.role {
  font-size: 14px;
  color: #888;
  font-style: italic;
}
*/
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: translateY(-3px);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.pause-btn.playing svg {
  fill: #e74c3c;
}

.indicator-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #e74c3c;
}

dialog {
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e74c3c;
  border-radius: 0.5rem;
  padding: 2rem;
  width: 40rem;
  min-height: 20rem;
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
  outline: none;
}

dialog > div {
    display: flex;
    /* flex: 1; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 10px; */
    width: 100%;
    min-height: 20rem;
    height: 100%!important;
    /* align-content: space-between; */
    /* flex-wrap: wrap!important; */
    /* align-content: space-between; */
    justify-content: space-between;
  
}
dialog::focus,
dialog::focus-visible {
  border: 1px solid #e74c3c;
}
/**
dialog > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 100%;
}
*/
dialog > div p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.dialog_footer {
  padding-top:1rem;
}

dialog::backdrop {
  /* hsla(0, 0%, 64%, 0.813); */
  background-color: hsla(0, 0%, 100%, 0.45);
}