/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #27e3fe;
    background-size: cover;
}

html {
    scroll-behavior: smooth;
}

/* Header layout */
.header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #4678d1;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.7);
}

/* Section 1 - Logo e titolo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    border: 2px solid white;
    border-radius: 25px;
    background-color: black;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title h1 {
    font-size: 1.1rem;
    text-transform: capitalize;
    color: white;
}

/* Section 2 - Navbar */
.navbar {
    flex-grow: 1;
}

.navbar nav {
    display: flex;
    width: 90%;
    margin: 0 5rem;
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

.navbar nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    width: 100%;
}

.navbar nav a {
    text-decoration: none;
    color: white;
    text-transform: capitalize;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar nav a:hover {
    text-decoration: underline;
}

.body {
    margin: 1rem;
    padding: 0.5rem 0;
    border: none;
    background-color: transparent;
}

.container {
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
    background: white;
}

.container h1 {
    text-transform: capitalize;
    text-align: center;
}

.container div {
    display: flex;
    flex-direction: row;
}

.container .text {
    flex: 1;
    margin: 30px 0;
    border-right: 3px solid black;
    padding-right: 10px;
}

.container .images {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .images img {
    width: 90%; /* Porta l'immagine a occupare tutta la larghezza disponibile */
    max-width: none; /* Disattiva i limiti di larghezza */
    height: auto; /* Mantieni le proporzioni dell'immagine */
    max-height: none; /* Disattiva i limiti di altezza */
    object-fit: contain; /* Mantieni il contenuto visibile senza distorsioni */
}

.container .video {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container .video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #000;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.container .team {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
}

.container .team .profile {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 300px;
}

.container .team .profile .profile_image {
    display: flex;
    justify-content: center;
}

.container .team .profile .profile_image img {
    height: 200px;
    max-width: 80%;
    object-fit: contain;
    max-height: 180px;
    border-radius: 20px;
}

.container .team .profile .info {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background: linear-gradient(to right, rgba(70, 120, 209, 0.1), rgba(39, 227, 254, 0.1));
    border-radius: 16px;
}

.slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section {
    min-width: 100%;
    padding: 2rem 4rem;
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.feature-section.active {
    opacity: 1;
    transform: scale(1);
}

.feature-section > div {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.feature-content {
    flex: 0 0 50%;
    padding-right: 2rem;
    border-right: 3px solid #4678d1;
}

.feature-content p {
    line-height: 1.6;
    color: #333;
}

.feature-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.feature-image img:hover {
    transform: scale(1.05);
}

.subtitle {
    color: #4678d1;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
}

.subtitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #27e3fe;
    border-radius: 2px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4678d1;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev:hover, .next:hover {
    background: #4678d1;
    color: white;
    box-shadow: 0 4px 15px rgba(70, 120, 209, 0.3);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(70, 120, 209, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4678d1;
    transform: scale(1.3);
}

/* Media Queries */
@media (max-width: 1024px) {
    .navbar nav {
        margin: 0 2rem;
        width: 95%;
    }

    .feature-content {
        flex: 0 0 40%;
        
    }

    .feature-image {
        flex: 0 0 30%;
    }
}

@media (max-width: 991px) {
    .navbar nav {
        width: 90%;
    }
    .navbar nav ul {
        display: grid;
        grid-template-columns: repeat(3,100px);
    }

    .navbar ul li:nth-child(1) {
        margin-bottom: 10px;
    }

    .container .info p {
        font-size: 13px;
    }

    .feature-section {
        padding: 1rem;
    }

    .feature-section > div {
        padding: 1rem;
    }
    
    .feature-content {
        flex: 0 0 50%;
        width: 80%;
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: none;
        border-right: 3px solid #4678d1;
        margin-right: 3rem;
    }
    
    .feature-image {
        flex: 0 0 30%;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar {
        display: flex;
        justify-content: center;
    }

    .header .logo {
        flex-direction: row;
    }

    .header .logo .title {
        flex-direction: row;
        gap: 7px;
    }

    .navbar {
        width: 100%;
    }

    .navbar nav {
        margin: 0;
        padding: 1rem;
    }

    .navbar nav ul {
        align-items: center;
        gap: 1rem;
    }

    .container .no-slider {
        flex-direction: column;
    }

    .container .text {
        border-right: none;
        border-bottom: 3px solid black;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .container .images {
        width: 100%;
        padding: 1rem 0;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 80px;
    }

    .title h1 {
        text-align: center;
    }

    .slides{
        width: 100%;
    }

    div.feature-section {
        flex-direction: column; /* Disporre gli elementi all'interno in colonna */
        padding: 1rem; /* Aggiungi padding se necessario */
        align-items: center;
    }

    section.feature-content {
        border-right: none; /* Rimuovi il bordo destro */
        border-bottom: 3px solid #4678d1; /* Aggiungi un bordo inferiore se necessario */
    }

    section.feature-image {
        padding-top: 1rem; /* Aggiungi spazio sopra l'immagine */
    }

    .prev, .next{
        height: 40px;
        width: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        margin: 0.5rem;
        padding: 0.5rem;
    }

    .navbar {
        display: flex;
        justify-content: center;
    }

    .navbar nav ul {
        display: grid;
        grid-template-columns: repeat(2, 100px);
    }

    .container {
        padding: 0.5rem;
    }

    .container .team {
        gap: 1rem;
    }

    .container .team .profile {
        width: 100%;
    }

    .container .images img {
        height: auto;
        max-height: 150px;
    }

    .container .team .profile .profile_image img {
        height: auto;
        max-height: 150px;
    }

    .logo img {
        height: 60px;
    }
}