:root {
  --first: #633c73;
  --second: #cd96e2;
  --fourth: #170c2c;
  --transparent: #ffffff00;
  --light: #f7faff;
  --dark: #1f2937;
  --light-dark: #4b5563;
  --grey: #6b7280;
}

.container-bg {
  background-color: var(--c39bd3);
  background: linear-gradient(
    180deg,
    #bf7bd9,
    #e7c9e9,
    #baaed5,
    #c4b9db,
    #561d6d
  );
}

.container-bg-error {
  background-color: var(--c39bd3);
  background: linear-gradient(180deg, #633c73, #b286b5);
  max-height: 100vh;
}

.container-xxl {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* ******************************** Error ******************************** */

.container-error {
  height: 70vh;
  color: var(--light);
  padding-top: 10%;
  text-align: center;
}

.container-error h1 {
  font-size: 10em;
  font-weight: bold;
}

/* ******************************** Error ******************************** */

/* ******************************** Spinner ******************************** */

.container-spinner {
  background-color: var(--light);
  padding: 0;
}

.container-spinner #spinner {
  background-color: var(--transparent);
  position: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100vh !important;
  top: 50% !important;
  left: 50% !important;
}

.container-spinner #spinner .spinner-grow {
  color: var(--light) !important;
  width: 100rem;
  height: 100rem;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1; /* Garantisce cerchio perfetto */
}

#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.2s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/* ******************************** Spinner ******************************** */

/* ******************************** Navbar ******************************** */

.container-navbar {
  color: var(--first);
}

.container-navbar .navbar {
  padding: 0;
}

.container-navbar .navbar .row {
  width: 100%;
  padding: 0;
  text-align: center;
}

.container-navbar .navbar .row .col {
  color: var(--first);
  margin: 0;
  font-size: 2em;
  font-weight: bold;
  padding: 0;
}

/* ******************************** Navbar ******************************** */

/* ******************************** Logo ******************************** */
.container-logo {
  max-width: 100%;
  width: 100%;
  padding: 0%;
  margin: 0;
}

.image-logo {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

/* ******************************** Logo ******************************** */

/* ******************************** Certificate ******************************** */

.container-carousel {
  margin: 0;
  max-width: 100%;
  width: 100%;
  padding-top: 3vh;
}

.owl-carousel .owl-item img {
  max-height: 25vh;
  object-fit: fill;
}

/* ******************************** Certificate ******************************** */

/* ******************************** Services ******************************** */

.container-service {
  max-width: 80rem;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1em;
}

.service-subtitle {
  font-size: 1.125rem;
  color: var(--grey);
  margin-bottom: 40px;
}

.accordion-item-div {
  /* border-width: 1px;
  border-style: solid; 
  border-radius: 12px;
  border-color: var(--dark);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

.accordion-item-div-description {
  padding-left: 12px;
  padding-right: 12px;
  color: var(--dark);
  font-size: 14px;
  line-height: 20px;
  max-height: 0;
  overflow: hidden;
  transition-property: all;
  transition-duration: 300ms;
  text-align: center;
}

.accordion-item-div-description-active {
  /* border-width: 1px;
  border-style: solid; 
  border-radius: 12px;
  border-color: var(--transparent); */
  border: none;
  padding: 10px;
  margin-top: 5px;
}

.accordion-item-button {
  align-items: center;
  width: 100%;
  text-align: center;

  padding-left: 3%;
  padding-right: 3%;
  padding-top: 1%;
  padding-bottom: 1%;

  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;

  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));

  background-color: var(--transparent);
  border: none;
}

.accordion-item-button:hover > span {
  border-bottom: 2px solid var(--first);
}

.div-accordion-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem; /* equivalente a Tailwind's gap-2 (8px) */
}

@media (min-width: 768px) {
  .div-accordion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Grid */
.category-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

/* Cards */
.category-service-card {
  /* background: #ffffffaf; */
  background: #f0ddff;
  padding: 20px 8px 20px 8px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.category-service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-service-icon {
  width: 30%;
  margin: auto;
}

.category-service-icon > img {
  width: 100%;
}

.category-service-step-number {
  font-size: 2rem;
  color: var(--second);
  font-weight: 700;
  margin-bottom: 12px;
}

.category-service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #111827;
}

.category-service-card p {
  font-size: 1rem;
  color: var(--light-dark);
}

/* ******************************** Services ******************************** */

/* ******************************** Workflow ******************************** */

.container-workflow {
  max-width: 70rem;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.workflow-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1em;
}

.workflow-subtitle {
  font-size: 1.125rem;
  color: var(--grey);
  margin-bottom: 40px;
}

/* Grid */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards */
.workflow-card {
  /* background: #ffffffaf; */
  background: #f0ddff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra orizzontalmente */
  justify-content: center; /* centra verticalmente */
  text-align: center;
}

.workflow-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.workflow-step-number {
  font-size: 2rem;
  color: var(--second);
  font-weight: 700;
  margin-bottom: 12px;
}

.workflow-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #111827;
}

.workflow-card p {
  font-size: 1rem;
  color: var(--light-dark);
}

/* ******************************** Workflow ******************************** */

/* ******************************** Phrase ******************************** */

.container-phrase {
  padding: 40px 20px;
  text-align: center;
}

.container-phrase blockquote {
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.container-phrase cite {
  display: block;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--dark);
  font-style: normal;
}

/* ******************************** Phrase ******************************** */

/* ******************************** Bio ******************************** */

.container-bio {
  color: var(--dark);
  max-width: 90rem;
  margin: 0 auto;
  padding: 20px;
}

.bio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.bio-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.bio-text {
  text-align: justify;
  max-width: 700px;
}

.bio-text h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-style: italic;
  color: #333;
  margin-bottom: 1em;
}

.bio-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--light-dark);
  margin-bottom: 15px;
}

/* Responsive layout */
@media (min-width: 768px) {
  .bio-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .bio-text {
    max-width: none;
  }
}

/* ******************************** Bio ******************************** */

/* ******************************** Footer ******************************** */
.footer {
  background-color: var(--fourth);
  color: var(--light);
  padding: 50px 20px 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer .container {
  max-width: 70rem;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
  padding-bottom: 30px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info i {
  margin-right: 10px;
  color: #6366f1;
}

.contact-info a {
  color: #f3f4f6;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-links a {
  font-size: 2.5rem;
  margin: 0 10px;
  color: #f3f4f6;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #6366f1;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-info {
    text-align: left;
  }

  .social-links {
    text-align: right;
  }
}

/* ******************************** Footer ******************************** */

/* ******************************** Responsive ******************************** */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .image-logo {
    height: 35vh;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .image-logo {
    height: 50vh;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .image-logo {
    height: 40vh;
  }
  .accordion-item-div-description {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .image-logo {
    height: 40vh;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .image-logo {
    height: 40vh;
  }
}

/* ******************************** Responsive ******************************** */

.owl-nav i {
  font-size: 1.5rem;
  color: #6366f1;
  transition: color 0.3s ease;
}

.owl-nav i:hover {
  color: #111827;
}

.owl-dots .owl-dot.active span {
  background-color: #6366f1;
}

.owl-carousel .item {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.owl-carousel .owl-item.center .item {
  transform: scale(1);
}

.splide__slide img {
  max-height: 35vh; /* Altezza fissa */
  object-fit: cover; /* Mantiene il rapporto ma ritaglia */
  width: 100%; /* Adatta alla larghezza dello slide */
}
