﻿/* Custom styles for the index page */

/* Hero section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  height: 100vh;
  transition: background-position 0.5s ease-out;
}

@media (min-width: 992px) {
  .hero-section {
    /* centro orizzontale, 60% in basso verticalmente */
    background-position: center 35%;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Colore rosso solido del brand */
  /* Rimuovere le proprietà dell'immagine di sfondo */
  /* background-image: url("/placeholder.svg?height=800&width=1600"); */
  /* background-size: cover; */
  /* background-position: center; */
  /* filter: brightness(0.4); */
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
}

.hero-title {
  font-weight: 300;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 
        0 1px 0 rgba(255,255,255,0.1), 
        0 -1px 0 rgba(0,0,0,0.3),
        0 4px 10px rgba(0,0,0,0.25);
}

.hero-description {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.8px;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  font-weight: 600;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: transform 0.4s ease, box-shadow 0.7s ease;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.626);
}

/* Search section */
.search-section {
  background-color: #f8f9fa;
  padding: 30px 0;
}

.search-container {
  background-color: white;
  border-radius: 5px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.input-group-text {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.form-select {
  border-radius: 5px;
  border: 1px solid #ced4da;
  padding: 10px 12px;
  height: auto;
}

.services-content {
  background: linear-gradient(
        to bottom right, 
        rgba(235, 237, 233, 0.95), 
        rgba(255, 255, 255, 0.98)
    );
    border: 1px solid rgb(143, 0, 29);
  padding: 2rem;
  border-radius: 5px;
  transition: transform 0.4s ease, box-shadow 0.7s ease;
  box-shadow: 
        0 15px 35px rgba(0,0,0,0.05),
        0 5px 15px rgba(143, 0, 29, 0.03) !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Section titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #c40d2e;
}

/* Featured events carousel */
.dynamic-item-carousel .slick-slide {
  padding: 15px;
  height: auto;
  /* Rimuovere overflow: hidden se presente */
}

/* Modifica alla classe .carousel-item-wrapper */
.carousel-item-wrapper {
  padding: 20px 20px 35px !important; /* Aumentato il padding inferiore per dare spazio all'ombra */
  height: 100%;
  overflow: visible; /* Assicura che l'ombra sia visibile */
}

/* Modifica alla classe .event-card */
.event-card {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 
        0 15px 35px rgba(0,0,0,0.05),
        0 5px 15px rgba(143, 0, 29, 0.03) !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
  border: none;
  margin-bottom: 10px; /* Aggiunto margine inferiore per dare spazio all'ombra */
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Aggiungere questa nuova classe per il contenitore del carosello */
.dynamic-item-carousel {
  overflow: visible !important;
  margin: 0 -15px; /* Compensa il padding aggiuntivo */
}

.fixed-height-card-body {
  display: flex;
  flex-direction: column;
  height: 250px; /* Fixed height for all card bodies */
  padding: 1.5rem;
}

.title-container {
  height: 60px; /* Fixed height for title */
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.description-container {
  height: 80px; /* Fixed height for description */
  margin-bottom: 1rem;
  overflow: hidden;
}

.action-container {
  margin-top: auto; /* Push to bottom */
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.card-text {
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.card-img-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-img-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* Header colorato per le card */
.card-color-header {
  position: relative;
  height: 120px;
  overflow: hidden;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.7s ease;
}

.event-card:hover .card-color-header {
  filter: brightness(1.1);
}

/* Modifica al badge quando è su sfondo colorato */
.card-color-header .badge {
  background-color: white !important;
  color: #333 !important;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge {
  background-color: #c40d2e !important;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
}

/* Services section */
.services-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* Sports section */
.sport-card {
  position: relative;
  height: 250px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 
        0 15px 35px rgba(0,0,0,0.05),
        0 5px 15px rgba(143, 0, 29, 0.03) !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.4s ease, box-shadow 0.7s ease;
}

.sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sport-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.sport-card:hover .sport-img {
  transform: scale(1.1);
}

.sport-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transition: all 0.7s ease;
}

.sport-card:hover .sport-overlay {
  background: linear-gradient(to top, #c40d2fc6, #c40d2f82, transparent);
}

.sport-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.sport-action {
  opacity: 0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.4s ease;
  display: inline-block;
  padding: 5px 0;
  border-bottom: 2px solid white;
}

.sport-card:hover .sport-action {
  opacity: 1;
}

/* Feature cards */
.feature-card {
  background-color: #fff;
  border-radius: 5px;
  padding: 30px 20px;
  border: none;
  box-shadow: 
        0 15px 35px rgba(0,0,0,0.05),
        0 5px 15px rgba(143, 0, 29, 0.03) !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  margin-bottom: 20px;
}

.icon-bg {
  width: 80px;
  height: 80px;
  background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.5) 0%,
        #c40d2f18 70%
    ) !important;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.4),
        0 4px 8px rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-bg i {
  font-size: 2.5rem;
  color: #c40d2e;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.feature-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Divider */
.h-divider {
  height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        #D5920B, 
        transparent
    );
    margin: 60px auto;
    width: 80%;
  position: relative;
}

.divider-shadow {
  height: 1px;
  background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

/* Button styling */
.button-tertiary-color {
  background-color: #c40d2e;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.4s ease;
}

.button-tertiary-color:hover {
  background-color: #6b0016;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(143, 0, 29, 0.2);
}

.button-quartyary-color {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.4s ease;
}

.button-quartyary-color:hover {
  background-color: #e9ecef;
}

/* Cursor pointer */
.c-pointer {
  cursor: pointer;
}

.text-justify {
  text-align: justify;
}

.dynamic-item-carousel .slick-track {
    margin-left: 0;
    display: flex;
}

.dynamic-item-carousel .slick-slide {
    float: none;
}

/* Compensa il margine per l'ultimo elemento */
.dynamic-item-carousel .slick-slide:last-child .carousel-item-wrapper {
    padding-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item-wrapper {
        padding: 15px; /* Ripristina padding uniforme su mobile */
    }
}