* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*aggiustamenti*/
* {
    line-height: 1.3;
    font-weight: lighter;
}

p {
    line-height: 1.5;
}



html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: white;
    background: url('https://meltemiadv.it/wp-content/uploads/2025/12/background1-scaled-1.avif') no-repeat top center;
    background-size: cover;
    min-height: 100vh;
}

/* ATTENZIONE */
.disclaimer {
    background-color: yellow;
    position: fixed;
    width: 100%;
    height: 5%;
    z-index: 1000;
}

.disclaimer p {
    font-size: 60%;
    color: black;
    text-align: center;
    background-color: yellow;
    padding: 1%;
}

.logo {
    margin-top: 5% !important
}

.container {
    padding: 0 200px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 5% !important;
    /* ATTENZIONE */
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.nav-links .btn-contattaci {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-contattaci {
    padding: 5px 20px;
    background: linear-gradient(to right, #59A08E, #2C82C9);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    border: none;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 80px 200px;
    gap: 90px;
    position: relative;
    min-height: 600px;
}

.performance-wrapper {
    position: relative;
    display: inline-block;
}

.performance-bg {
    position: absolute;
    left: 0;
    top: 20%;
    transform: translate(-50%, -50%);
    z-index: -1;
    max-width: 200px;
    opacity: 0.2;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 100px;
    margin-left: 100px;
}

.hero-text h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-hero,
.hero-buttons a {
    padding: 8px 20px;
    background: #fff;
    color: #005EA4;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.btn-scopri .btn-icon {
    width: 16px;
    height: auto;
    margin-left: 8px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-image img {
    position: relative;
    top: 150px;
    max-width: 110%;
    border-radius: 10px;
    margin-right: 50px;
}

.storia {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 0;
}

.storia-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.storia-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.storia-img img {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
}

.storia-text {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.storia-text p:first-of-type {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

.storia-text h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #004B82;
    font-weight: 700;
}

.storia-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.storia-text .btn-contattaci {
    width: 50%;
    display: inline-block;
    text-align: center;
    padding: 8px 20px;
    background: white;
    color: #005EA4;
    font-weight: bold;
    text-decoration: none;
}




.esigenze {
    padding: 150px 0;
    color: white;
    text-align: center;
}

.esigenze .section-header h1 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding-bottom: 8px;
}

.esigenze .section-header p {
    font-size: 16px;
    margin-bottom: 100px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.esigenze-wrapper {
    position: relative;
    display: inline-block;
}

.esigenze-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
    max-width: 600px;
    opacity: 0.2;
    pointer-events: none;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 30px;
}

.card {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 25px;
    max-width: 450px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.card.slide-left {
    transform: translateX(-50px);
}

.card.show {
    opacity: 1;
    transform: translateX(0);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.card-content p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
    color: white;
}

.broapp {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 80px 200px;
    gap: 40px;
    position: relative;
    min-height: 600px;
}

.hope-bg {
    position: absolute;
    left: 0;
    top: 20%;
    transform: translate(-50%, -50%);
    z-index: -1;
    max-width: 150px;
    opacity: 0.2;
}

.broapp .broapp-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 100px;
    margin-left: 100px;
}

.broapp .broapp-text h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.broapp .broapp-text p {
    font-size: 16px;
    margin-bottom: 30px;
    padding-right: 40px;
}

.broapp .broapp-buttons {
    display: flex;
    gap: 15px;
}

.broapp .btn-hero,
.broapp .broapp-buttons a {
    padding: 8px 20px;
    background: #fff;
    color: #005EA4;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.broapp .btn-scopri .btn-icon {
    width: 16px;
    height: auto;
    margin-left: 8px;
}

.broapp .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.broapp .hero-image img {
    position: relative;
    top: 150px;
    max-width: 110%;
    border-radius: 10px;
    margin-right: 50px;
}

.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    margin-top: 80px;
}

.numeri {
    margin-top: 150px;
    padding: 150px 0;
    text-align: center;
    color: white;
}

.numeri .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.numeri .section-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.numeri-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.numero-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.numero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.numero-card h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f5f5f5;
}

.numero-card span {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.85;
}

.parla-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 100px;
    align-items: center;
}

.parla-text h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.parla-text p {
    font-size: 16px;
    margin-bottom: 30px;
}

.parla-buttons {
    display: flex;
    gap: 15px;
}

.parla-buttons a {
    padding: 8px 20px;
    background: linear-gradient(to right, #59A08E, #2C82C9);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.kiss-bg {
    position: absolute;
    left: 0;
    top: 20%;
    transform: translate(-50%, -50%);
    z-index: -1;
    max-width: 200px;
    opacity: 0.2;
}

.site-footer {
    background-color: #10182f;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0;
    font-size: 14px;
    text-align: center;
    margin-top: 250px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.bubbles {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 999;
}

.bubble {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 5s linear forwards;
}

@keyframes rise {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

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

    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 25px;
    }

    .hero {
        flex-direction: row;
        /* fianco a fianco */
        align-items: center;
        text-align: left;
        padding: 60px 100px;
        gap: 40px;
    }

    .hero-text {
        flex: 1;
        margin: 0;
        padding: 0;
        align-items: flex-start;
        text-align: left;
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin: 0;
    }

    .storia-card {
        flex-direction: row;
        /* due colonne */
        text-align: left;
        padding: 60px;
        gap: 50px;
        margin-bottom: 150px;
    }

    .storia-img {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .storia-text {
        flex: 1;
        text-align: left;
    }

    .numero-card {
        min-height: 240px;
        /* altezza costante */
        height: 240px;
        transition: none;
        /* elimina micro movimenti */
    }

    .numero-card h2 {
        min-height: 48px;
        /* blocca l’oscillazione del testo */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .numeri-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .numeri-cards .numero-card {
        flex: 0 1 calc(50% - 20px);
    }

    .esigenze.container {
        padding-bottom: 150px !important;
        /* assicura spazio interno visivo */
    }

    .broapp.container {
        margin-top: 0 !important;
        padding-top: 40px !important;
        /* riduce sovrapposizione del padding */
        padding-bottom: 150px;
    }



}

@media(max-width:768px) {

    body,
    html {
        overflow-x: hidden !important;
        margin: 0;
        padding: 0;
    }

    .container {
        padding: 0 20px;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0px !important;
        background: rgba(0, 0, 0, 0.8);
        padding-left: 20px !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
        margin-top: 9% !important;
        /* ATTENZIONE-> xdisclaimer*/
    }

    .logo {
        margin-top: 9% !important;
        /* ATTENZIONE-> xdisclaimer*/
    }

    .hero-text p {
        font-size: 15px;
        line-height: 1.6;
        font-weight: 400;
        color: #004c82;
        margin-bottom: 30px;
        padding: 0 10px;
        text-align: left
    }

    .hero,
    .broapp {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 60px 0 80px 0;
    }

    .hero-text,
    .broapp .broapp-text {
        order: 1;
        margin: 0;
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }

    .hero-image,
    .hero-video {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-text h1,
    .broapp .broapp-text h1 {
        font-size: 40px;
        line-height: 1.25;
        font-weight: 700;
        margin-bottom: 18px;
        margin-left: -20px;
        text-align: left
    }

    .broapp .broapp-text p {
        font-size: 15px;
        line-height: 1.6;
        font-weight: 400;
        color: #fff;
        margin-bottom: 30px;
        padding: 0 10px;
        text-align: left
    }

    .broapp .broapp-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* allinea a sinistra */
        justify-content: flex-start;
        gap: 12px;
        margin-top: 10px;
        width: 100%;
        margin-left: 20px;
    }

   .hero-buttons a,
    .broapp .broapp-buttons a {
        padding: 10px 28px;
        border-radius: 40px;
        font-weight: 600;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-image img,
    .hero-video video {
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        /* allinea i pulsanti a sinistra */
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        margin-left: 0;
    }

    .cards-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0 20px;
    }

    .esigenze {
        padding: 100px 20px;
        text-align: center;
    }

    .esigenze .section-header {
        max-width: 700px;
        margin: 0 auto 80px auto;
    }

    .esigenze .section-header h1 {
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.25;
        border-bottom-width: 1px;
        margin-bottom: 20px;
    }

    .esigenze .section-header p {
        margin: 0 20px;
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* --- Sezione LA NOSTRA STORIA (mobile) --- */
    .storia-card {
        display: flex !important;
        flex-direction: column !important;
        /* ordine: titolo-testo-img */
        text-align: left;
        margin: 60px auto;
        padding: 30px 20px;
    }

    .storia-text {
        order: 1 !important;
        text-align: justify !important;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .storia-text h1,
    .storia-text p:first-of-type {
        text-align: left !important;
    }

    .storia-img {
        display: none !important;
    }


    .numeri {
        margin-top: 60px !important;
        padding: 80px 0 !important;
    }

    .numeri .section-header {
        text-align: center;
        margin-bottom: 20px !important;
    }

    .numeri .section-header h1 {
        font-size: 28px !important;
        margin-bottom: 40px !important;
    }

    .numeri-cards {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 18px !important;
        padding: 0 20px !important;
    }

    .numero-card {
        flex: 0 1 calc(50% - 12px) !important;
        /* due per riga */
        min-height: 130px !important;
        height: 130px !important;
        max-width: 170px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 16px !important;
        padding: 20px !important;
        transition: none !important;
    }

    .numero-card h2 {
        font-size: 28px !important;
        min-height: 36px !important;
        line-height: 1 !important;
        margin-bottom: 8px !important;
    }

    .numero-card span {
        font-size: 13px !important;
    }

    /* PARLA CON NOI */
    .parla-text {
        margin: 50px 0;
        align-items: center;
        margin-bottom: 120px;
    }

    .parla-text p {
        text-align: left;
        padding: 0 20px;
        margin-left: 8%;
        margin-bottom: 20px;
    }

    .parla-buttons {
        justify-content: center;
    }

}



/* Navbar perfetta da piattaforma */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 200px;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 999;
}

nav .logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.btn-contattaci {
    background: linear-gradient(to right, #59A08E, #2C82C9);
    color: #fff;
    padding: 6px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.btn-contattaci:hover {
    opacity: 0.85;
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1024px) {
    nav {
        padding: 15px 0px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-right: 40px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }
}
