@charset "utf-8";
/* ================================
   SIPAD 2025 CUSTOM STYLES
   ================================ */

/* -------------------------------
   SLIDER (Swiper / Carousel)
   ------------------------------- */
.swiper-slide,
.carousel-item img {
  height: 70vh;
  min-height: 450px;
  object-fit: cover;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.swiper-slide .container,
.carousel-caption {
  position: relative;
  z-index: 2;
}

.swiper-slide .container.d-flex {
  align-items: center;
  padding-top: 0;
}

/* Testo overlay */
.swiper-slide .text-white.text-start,
.carousel-caption .overlay-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 20px 30px;
  border-radius: 12px;
  display: inline-block;
  max-width: 650px;
}

.swiper-slide h2,
.swiper-slide h4,
.swiper-slide h5,
.carousel-caption h2 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Overlay box per Carousel */
.carousel-caption.custom-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 700px;
  text-align: center;
  z-index: 10;
}

.carousel-caption .overlay-box {
  background: rgba(128, 128, 128, 0.7);
  color: #fff;
}

/* Evidenziazione Data */
.carousel-caption .data,
.swiper-slide .data {
  background: #ff9900;
  color: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 5px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Bottone Programma */
.swiper-slide .btn-programma,
.carousel-caption a.btn-warning {
  border-radius: 20px;
  background-color: orange;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.swiper-slide .btn-programma:hover,
.carousel-caption a.btn-warning:hover {
  background-color: #cc7000;
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px !important;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: orange;
  opacity: 1;
}

/* Swiper Frecce */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  transition: color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: orange;
}

/* -------------------------------
   SEZIONE PRINCIPALI
   ------------------------------- */
.principali {
  background-color: #f8f9fa;
}

.principali .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.principali .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.principali h5 {
  color: #2c3e50;
}

.principali p {
  color: #555;
  flex-grow: 1;
}

.principali .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.principali .col-md-6,
.principali .col-lg-3 {
  display: flex;
}

/* -------------------------------
   CARD GENERALI
   ------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-body .btn,
.card-body a.btn {
  margin-top: auto; /* bottone sempre in basso */
}

.card-img-wrapper {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

/* -------------------------------
   SEZIONE EVENTI FORMATIVI
   ------------------------------- */
.eventi-formativi .row {
  display: flex;
  align-items: stretch;
  margin-top: 0 !important;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.eventi-formativi .col-md-4 {
  display: flex;
}

.partner-section h3 {
  color: #003366;
}

.partner-card {
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.partner-card img {
  max-height: 120px;
  object-fit: contain;
}

.partner-card {
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important; /* no underline */
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.partner-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0D1B2A; /* blu scuro */
  text-transform: uppercase;
  margin-bottom: 12px;
}
.partner-card img {
  max-height: 120px;
  object-fit: contain;
}

@media (min-width: 992px) {
  .eventi-formativi .row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .eventi-formativi .col-md-4 {
    flex: 0 0 32%;
    max-width: 32%;
  }
}

@media (max-width: 991px) {
  .eventi-formativi .row {
    flex-direction: column;
  }
  .eventi-formativi .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.eventi-formativi .card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.eventi-formativi .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.eventi-formativi .card-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background-color: #fff;
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
}
.eventi-formativi .card-img-wrapper img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}

.eventi-formativi .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  padding: 1rem;
}
.eventi-formativi .card-body h5 {
  color: #2c3e50;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.eventi-formativi .card-body p {
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
}
.eventi-formativi .card-body .d-flex { margin-top: auto; }

/* -------------------------------
   SEZIONE PAGA QUOTA
   ------------------------------- */
.section-paga-quota {
  background-color: #2c3e50;
  padding: 40px 20px;
  color: #fff;
  text-align: center;
}

.section-paga-quota h3 { color: #fff; }

.section-paga-quota .btn-warning {
  background-color: orange;
  border: none;
  border-radius: 8px;
}
.section-paga-quota .btn-warning:hover {
  background-color: #cc7000;
}

.section-paga-quota .tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform .3s ease;
}

.section-paga-quota .tile:hover { transform: translateY(-6px); }

.section-paga-quota .tile h4 {
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.section-paga-quota .tile p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: auto;
}

.section-paga-quota .tile a.btn { margin-top: auto; }

/* -------------------------------
   FOOTER
   ------------------------------- */
.page-footer {
  padding-bottom: 1rem !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-footer h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.page-footer p { margin-bottom: 0.3rem; }
.page-footer ul li { margin-bottom: 0.4rem; }

.page-footer a {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.page-footer a:hover {
  color: #ccc;
  text-decoration: underline;
}

.footer-bg {
  background-color: #516d96;
  color: #fff;
}
.footer-bg a {
  color: #fff;
  text-decoration: none;
}
.footer-bg a:hover {
  color: #dbe4f3;
  text-decoration: underline;
}
.footer-bg hr {
  border-color: rgba(255, 255, 255, 0.25);
}

/* -------------------------------
   RESPONSIVE
   ------------------------------- */
@media (max-width: 992px) {
  .swiper-slide,
  .carousel-item img {
    height: 60vh;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .swiper-slide,
  .carousel-item img {
    height: 50vh;
    min-height: 280px;
  }

  .swiper-slide .container.d-flex {
    align-items: center;
    justify-content: center;
  }

  .swiper-slide .text-white.text-start,
  .carousel-caption .overlay-box {
    max-width: 100%;
  }
}
