@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poetsen+One&display=swap');

body {
    font-family: 'Poetsen One', sans-serif;
    margin: 0;
    padding-top: 180px;
    line-height: 1.6;
    color: #333;
    background-color: #b8ddf8;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px;
}

h1, h2, h3 {
    font-family: 'Poetsen One', sans-serif;
    color: #1a4f72;
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2em; text-align: center;}
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.button {
    font-family: 'Poetsen One', sans-serif;
    padding: 0.6em 1.3em;
    font-weight: 900;
    font-size: 18px;
    border: 3px solid black;
    border-radius: 20px;
    box-shadow: 0.1em 0.1em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    color: black;
}

.button:hover {
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em;
}

.button:active {
    transform: translate(0.05em, 0.05em);
    box-shadow: 0.25em 0.25em;
}

.button.button-register {
    background-color: #f4ca44;
    margin-right: 20px;
}

.button.button-login {
    background-color: #c1ecf4;
}

.button.small {
    padding: 8px 15px;
    font-size: 0.9em;
}

header {
    background-color: #1a4f72;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header h1 {
    color: white;
    margin-bottom: 5px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.navbar {
    background-color: #345e7d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    text-align: center;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar ul li {
    margin: 0 18px;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.navbar ul li a {
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

.navbar ul li a:hover {
    color: #ffe448;
    text-decoration: underline;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    padding: 10px;
    top: 0;
    position: relative;
    z-index: 1001;
}

.navbar-logo {
    height: 50px;
    width: auto;
    margin-right: 20px;
    transition: height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

header .logo-head{
    max-height: 120px;
    width: auto;
    margin-top: 10px;
    transition: all 0.3s ease;
}

header.scrolled {
    padding-top: 0;
    padding-bottom: 0;
    height: 70px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header.scrolled .container h1,
header.scrolled .container p,
header.scrolled .logo-head {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    height: 0;
    margin: 0;
    padding: 0;
}

header.scrolled .navbar {
    background-color: transparent;
    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
    width: auto;
}

header.scrolled .navbar .container {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header.scrolled .navbar-logo {
    opacity: 1;
    pointer-events: auto;
    height: 50px;
    margin-right: 20px;
}

header.scrolled .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

header.scrolled .navbar ul li {
    margin: 0 10px;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
    bottom: 10px;
}

body.scrolled {
    padding-top: 70px;
}

.home-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 180px);
    width: 100%;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('immagini/bg.jpeg');
}

.split-container {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    align-items: center;
}

.content-wrapper {
    max-width: 500px;
    padding: 20px;
    border-radius: 8px;
}

.responsive-image {
    max-width: 80%;
    height: auto;
    display: block;
}

section {
    padding: 70px 0;
    padding-bottom: 20px;
    text-align: center;
}

section:nth-of-type(even) {
    background-color: transparent;
}
.hero{
    background-color: transparent;
    margin-top: 50px;
}
.alt-bg {
    background-color: transparent;
}

.architecture-img{
    margin-left: 10%;
    height: 80%;
    width: 80%;
}

.section-content-card {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 0 auto;
    max-width: 900px;
    box-sizing: border-box;
    text-align: left;
}

.user-role-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-top: 4px solid #6cadd4;
}

.user-role-card h3 {
    margin-top: 0;
    color: #1a4f72;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.user-role-card ul {
    margin: 10px 0 0;
    padding-left: 20px;
    list-style: disc;
}
.user-role-card ul li {
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 5px 0;
    margin-bottom: 5px;
}

.note {
    font-size: 0.9em;
    color: #e04e39;
    font-weight: 600;
    margin-top: 30px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-list span {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-list span:hover {
    background-color: #b8ddf8;
    color: #1a4f72;
    transform: scale(1.05);
    border-color: #b8ddf8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tech-list span a{
    color: #000;
    text-decoration: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    height: 0;
    margin: 30px auto;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    margin-top: 30px;
    background-color: #1a4f72;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

.team-members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 25px;
    text-align: center;
    flex: 1 1 calc(50% - 30px);
    max-width: 400px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.team-card h3 {
    color: #1a4f72;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.team-card .role {
    font-weight: 600;
    color: #345e7d;
    margin-bottom: 10px;
}

.team-card .contact-info a {
    color: #007bff;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

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

.carousel-container {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    max-width: 100%;
    height: 437px;
    width: 197px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-caption {
    margin-top: 15px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #444;
    font-family: 'Poetsen One', sans-serif;
    padding: 0 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 79, 114, 0.7);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #1a4f72;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-top: 20px;
    margin-bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.dot.active {
    background-color: rgba(26, 79, 114, 0.7);
    transform: scale(1.2);
    border-color: rgba(26, 79, 114, 0.7);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    body {
        padding-top: 170px;
    }

    .navbar ul li {
        margin: 0 12px;
    }
    .navbar ul li a {
        font-size: 1.5em;
    }

    .navbar .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #345e7d;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 999;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        font-size: 1.2em;
        display: block;
        padding: 10px 0;
    }

    .hamburger-menu {
        display: flex;
        top: -30px;
    }

    header.scrolled .navbar .container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    header.scrolled .nav-links {
        position: fixed;
        top: 60px;
        background-color: #1a4f72;
        z-index: 999;
    }

    header.scrolled .navbar {
        justify-content: flex-end;
    }
    
    header.scrolled .hamburger-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .home-background {
        min-height: calc(100vh - 170px);
    }

    .split-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .content-wrapper {
        max-width: 90%;
        padding: 15px;
    }

    .responsive-image {
        max-width: 70%;
        margin-top: 30px;
    }

    .button {
        font-size: 16px;
        padding: 0.5em 1em;
    }
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    .hero{
        padding: 150px 0;
        padding-bottom: 20px;
    }

    .section-content-card,
    .user-role-card {
        padding: 30px;
        margin: 0 auto;
        margin-bottom: 30px;
        max-width: 90%;
    }

    .tech-list {
        gap: 10px;
        margin-top: 20px;
    }
    .tech-list span {
        padding: 7px 14px;
        font-size: 0.85em;
    }

    .carousel-container {
        max-width: 90%;
        margin: 40px auto;
        padding: 15px;
    }
    .carousel-image {
        height: auto;
        max-width: 100%;
    }
    .carousel-btn {
        font-size: 1.8em;
        padding: 12px 8px;
    }
    .carousel-dots {
        bottom: 25px;
        gap: 8px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }

    .team-members-container {
        flex-direction: column;
        gap: 20px;
    }
    .team-card {
        margin-left: auto;
        margin-right: auto;
        flex: 1 1 90%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }

    body.scrolled {
        padding-top: 60px;
    }
    header.scrolled {
        height: 60px;
    }
    header.scrolled .navbar-logo {
        height: 45px;
    }
    header.scrolled .navbar ul li {
        margin: 0 5px;
    }
    header.scrolled .navbar ul li a {
        font-size: 1.5em;
    }
    header.scrolled .navbar .container {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    header.scrolled .navbar ul {
        flex-wrap: nowrap;
    }

    header.scrolled .nav-links {
        top: 60px;
    }
    header.scrolled .hamburger-menu {
        right: 15px;
    }

    .navbar .container {
        padding: 0 10px;
    }
    .hamburger-menu {
        font-size: 1.6em;
        top: 0;
    }
    .nav-links li a {
        font-size: 1.1em;
    }

    .button {
        font-size: 16px;
        width: 80%;
        margin: 0 auto 10px auto;
    }
    .button.button-register {
        margin-right: 0;
    }

    .responsive-image {
        max-width: 90%;
    }

    .hero{
        padding: 150px 0;
        padding-bottom: 20px;
    }
    .section-content-card,
    .user-role-card {
        padding: 20px 15px;
        margin-bottom: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .section-content-card p,
    .user-role-card p,
    .user-role-card ul li {
        font-size: 0.9em;
    }

    .tech-list {
        gap: 8px;
    }
    .tech-list span {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    .carousel-container {
        margin: 20px auto 50px auto;
        padding: 5px;
    }
    .carousel-btn {
        padding: 8px 6px;
        font-size: 1.2em;
    }
    .carousel-caption {
        font-size: 0.9em;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .carousel-dots {
        bottom: 15px;
        gap: 6px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }

    .team-members-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .team-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px;
        text-align: center;
    }

    .team-card h3 {
        font-size: 1.3em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .team-card .role {
        font-size: 0.9em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .team-card .contact-info a {
        font-size: 0.85em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    footer {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }

    h1 { font-size: 1.6em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.1em; }

    header h1 {
        font-size: 1.8em;
    }
    header p {
        font-size: 0.9em;
    }
    .navbar ul li {
        margin: 3px;
        font-size: 0.7em;
    }

    .hamburger-menu {
        font-size: 1.4em;
    }
    .nav-links li a {
        font-size: 1em;
    }

    .button {
        font-size: 14px;
        padding: 0.4em 0.8em;
    }

    .section-content-card,
    .user-role-card {
        padding: 10px;
        margin-bottom: 30px;
    }

    .carousel-container {
        margin: 15px auto 40px auto;
        padding: 0;
    }
    .carousel-image {
        height: auto;
        width: 100%;
    }
    .carousel-caption {
        font-size: 0.8em;
        padding: 0 3px;
    }
    .carousel-btn {
        padding: 5px 4px;
        font-size: 1em;
    }
    .carousel-dots {
        bottom: 10px;
        gap: 4px;
    }
    .dot {
        height: 6px;
        width: 6px;
    }

     header.scrolled .nav-links {
        top: 60px;
    }
    header.scrolled .hamburger-menu {
        right: 10px;
    }
}