/* Additional styles for the new sections */

/* Hero Split Layout */
.hero-split {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.hero-left, .hero-right {
    flex: 1;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 10px;
    backdrop-filter: blur(5px);
}

.hero-main {
    clear: both;
    padding: 20px 0;
}

.hero-main .highlight {
    background: #e300ff;
    padding: 0 10px;
}

/* Team Slideshow */
.team-slideshow {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.team-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.team-slide-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Stili per fissare dimensioni immagine team */
.team-slide-image {
    width: 200px; /* Imposta larghezza fissa */
    height: 200px; /* Imposta altezza fissa */
    overflow: hidden; /* Nasconde parti dell'immagine che eccedono */
    margin: 0 auto 15px; /* Centra il box e aggiunge margine sotto */
    display: flex; /* Necessario per centrare l'immagine con object-fit */
    justify-content: center;
    align-items: center;
}

.team-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scala l'immagine mantenendo le proporzioni e coprendo l'area */
    object-position: center; /* Centra l'immagine all'interno del box */
}

.team-slide-content {
    flex: 2;
    padding: 30px;
}

.team-slide-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.team-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: var(--transition);
}

.team-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Services Slider */
.services-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.service-slide-item {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-slide-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-slide-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.service-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: var(--gray-color);
    border-radius: 10px;
}

.service-details ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.service-details li {
    margin-bottom: 10px;
}

.services-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.services-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: var(--transition);
}

.services-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Stili per la pagina Team */
.team-page-section {
    padding: 60px 0;
    text-align: center;
}

.team-page-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    margin: 20px 0; /* Ripristinato il margine che era inline */
}

.team-page-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.team-member-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #6a1b9a; /* Colore primario o a scelta, reso più spesso */
}

.team-member-card h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.team-member-card .member-role {
    font-size: 1em;
    color: #6a1b9a; /* Colore primario o a scelta */
    font-weight: 500;
    margin-bottom: 10px;
}

.team-member-card .member-desc {
    font-size: 0.9em;
    color: #777;
    line-height: 1.5;
}

.team-conclusion {
    margin-top: 50px;
    font-size: 1.1em;
    color: #555;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
    }
    
    .hero-left, .hero-right {
        margin-bottom: 20px;
    }
    
    .team-slide-item {
        flex-direction: column;
    }
    
    .team-slide-image {
        max-width: 100%;
        height: 200px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .service-slide-content h3 {
        font-size: 1.5rem;
    }
    .team-page-header h1 {
        font-size: 2em;
    }
    .team-grid {
        grid-template-columns: 1fr; /* Stack su mobile */
    }
    .team-member-card img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-left, .hero-right {
        padding: 20px;
    }
}

.table-styled {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.table-styled thead tr {
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: left;
}

.table-styled th,
.table-styled td {
  padding: 12px 15px;
}

.table-styled tbody tr {
  border-bottom: 1px solid #dddddd;
}

.table-styled tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.table-styled tbody tr:last-of-type {
  border-bottom: 2px solid var(--secondary-color);
}

.table-styled tbody tr.active-row {
  font-weight: bold;
  color: var(--secondary-color);
}

.cta-box {
  background-color: #f3f4f6;
  border-left: 4px solid var(--secondary-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  font-size: 1rem;
}

.cta-box p {
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.cta-box .btn {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.cta-box .btn:hover {
  background-color: var(--secondary-color);
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
}

dl {
  margin-top: 1rem;
}

dt {
  font-weight: 600;
  margin-top: 1rem;
}

dd {
  margin: 0.25rem 0 1rem 1rem;
  color: #4b5563;
}

.service-description ul li::before {
  content: '✔️';
  display: inline-block;
  margin-right: 0.5rem;
  color: #10b981;
}

.service-detail-container section {
  padding: 2rem 0!important;
}