@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Mukta:wght@200;300;400;500;600;700;800&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

/* ----- RESET E IMPOSTAZIONI GENERALI ----- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-style: normal;
    width:100%;
}

section {
    margin: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ----- Typography ----- */
h1 {
    font-size: 3.5rem;
    
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3rem;
}

a {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.black {
    color: #000000;
}
#black {
    color: #ffffff;
}

/* ----- HEADER E NAVIGAZIONE ----- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-left:1rem;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo img {
    width: 200px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: white;
    border: none;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #02afec;
    display: block;
}

/* ----- BOTTONI E LINKS ----- */

.button1 {
    padding: 0.7rem 0.5rem;
    border-radius: 30px;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    color: #fff;
    background-color: #000;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
}
.button1:hover {
   
    color: #19a5d7;
    background-color: #000000;
    
}

.button2 {
    padding: 15px 25px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 30px;
    margin-top: 10%;
    margin-bottom: 10%;
    max-width: 20%;
    color: white;
    text-decoration: none;
    text-align: center;
}
    .button2:hover {
    padding: 15px 25px;
    border: 1px solid rgb(255, 255, 255);
    background-color: white;
    border-radius: 30px;
    margin-top: 10%;
    max-width: 20%;
    color: #19a5d7;
    text-decoration: none;
    text-align: center;
}

.button3 {
    padding: 1rem;
    border: 1px solid  #02afec;
    border-radius: 30px;
    margin:5%;
    background-color: #ffffff;
    color:  #19a5d7;
    text-decoration: none;
    text-align: center;
}

.button3:hover {
    padding: 1rem;
     margin:5%;
    background-color: #02afec;
    border: 1px solid  #ffffff;
    border-radius: 30px;
    color:  #ffffff;
    text-decoration: none;
    text-align: center;
}

.button4 {
    padding: 15px 25px;
    border: none;
    background-color: #02afec;
    color: white;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition:  0.3s ease;  
    
}
.button4:hover {
    background-color: #02afec;
}
@media screen and (max-width: 768px) {
    .button4 {
    margin-right: 5%;
}
/* Button1 Nascondi il bottone fuori dal menu su desktop */
#mobile .Button1 {
    display: none;
}
}

/* Mostra e posiziona accanto al toggle su mobile */
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .menu-toggle {
        margin-right: 1%;
    }
    #mobileButton1 {
        display: inline-block;
        margin-left: 0;
        margin-right: 0.5rem;
        margin-top: 0;
        padding: 0.2rem 0.2rem;
        font-size: 0.8rem;
        vertical-align: middle;
        height: 20px; /* o il valore che preferisci per abbassarlo */
        line-height: 20px;
    }
    .menu-toggle {
        margin: 0;
        align-self: center;
    }
    /* Nascondi il bottone nel menu mobile se serve */
    #navMenu .button1 {
        display: none;
    }
}


.button {
    display: inline-block;
    margin-top: 10%;
}

/* ----- LAYOUT CONTAINERS ----- */
.column {
    display: flex;
    flex-direction: column;
}

.wrap-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----- SECTION: OLEAWISE 1 ----- */
#Oleawise1 {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    gap: 2rem;
    background: #02afec;
    padding-top:100px;
    
}

#Oleawise1 .wrap {
    display: flex;
    flex-direction: column;   
    justify-content: center;
    align-items: center;
    padding-top:10%;
}

div .text-row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    color: #ffffff;
    position: relative;
    z-index: 20; /* Ensure text stays above image */
}

#Oleawise1 .text-row h1 {
    flex: 1 1 45%;
    text-align: left;
    margin: 0;
    
}

#Oleawise1 .text-row p.column {
    flex: 1 1 45%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}



#Oleawise1 .image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem; 
}

#Oleawise1 .image-center img {
    max-width: 70%;
    height: auto;
    border: 10px solid black;
    border-radius: 15px;
    /* Remove or reduce the negative margin */
    margin-top: -100px;
    margin-bottom: -50px; 
    position: relative;
    z-index: 10;
}


@media screen and (max-width: 768px) {

    #Oleawise1 {
        padding-top: 110px; /* Se il menu mobile è più alto */
    }
    
    #Oleawise1 .image-center img {
    max-width: 70%;
    height: auto;
    border: 15px solid black;
    border-radius: 15px;
    z-index: 10;
    
}
#Oleawise1 .button2{
    margin-bottom: 4rem;;
}
#Oleawise1 .button2:hover{
    margin-bottom: 4rem;;
}

    #Oleawise1 .text-row {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #Oleawise1 .text-row p.column {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* --- sezione Oleawise2 --- */
#Oleawise2{
    min-height: 50vh;
    background-color:#ffffff;
    z-index: 9;
    padding: 10% 15%;
}

/* 1) selettore corretto: SPAZIO tra id e classe */
#Oleawise2 .content-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:2rem;
   
    background-color:#ffffff;
    margin-top: 100px;
}

/* immagine */
#Oleawise2 .content-wrapper img{
    width:90%;
    padding-bottom:2%;
}

/* colonna testo */
#Oleawise2 .column{
    flex:1;
    min-width:280px;
}

#Oleawise2 .column h1{
    color:#02afec;
    padding-top: 5%;
}
/* ----- SECTION: OLEA CHI SIAMO ZERO----- */

#Olea {
    min-height: 50vh;
    background: #f5f5f5;
    padding-top: 5%;
    padding-left: 5%;
    padding-right:5%;
    padding-bottom: 5%;
    display:flex;
    flex-direction: row;
    gap:2rem;
}

#Olea h1{

    color: #02afec;
}
#Olea2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
#Olea2 img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    #Olea {
        flex-direction: column; /* mobile: impilato */
        padding-right: 5%;
    }
    

}


#chi-siamo{
    min-height: 50vh;
    background: #f5f5f5;
    padding: 5% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#zero {
    min-height: 50vh;
    background: #02afec;
    padding: 5% 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contatti {
    min-height: 50vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #e6e5e5;
}
footer {
    background-color: #02afec;
    
}
    
/* ----- SECTION: ANIMAZIONE LATO 1 ----- */

#Animazione-lato h1 {
   
    color: #02afec;
}
#Animazione-lato p {
    
    color: #030303;
}

.image-wrapper img {
    max-width: 80%;    
}


/* ----- SECTION: ANIMAZIONE LATO TEXT ----- */



@media (max-width: 768px) {
    .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.image-wrapper img {
    max-width: 50%;
    align-self: center;  
}
}
/* ----- HERO SECTIONS ----- */
.hero h1 {
    color: #ffffff;
    text-align: center;
    

}
.hero-white, .hero-whois {
    background: #f5f5f5;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;

}


@media (max-width: 768px) {

}
.hero-whois {
    margin-top: 0;
}


.hero-title {
    color: #02afec;
    background-color: #f5f5f5;
    text-align: left;
    
}
#chi-siamo .hero-title h1 {
    text-align: left;
    margin-left: 0;
}
@media (max-width: 768px) {
   
    .hero-title-form {
        padding: 5% 5%;
    }
    #chi-siamo .hero-title h1 {
    text-align: left !important;
    margin-left: 0;
}
}



.hero-title h1, .hero-title-form h1 {
    text-align: left;
    color: #02afec;
    
}

.hero-title h2 {
    text-align: center;
    color: rgb(255, 255, 255);
    font: inherit;
}

.hero-title-form h2 {
    text-align: left;
    color: black;
    line-height: 1rem;
    font-size: 1rem;
    margin-bottom: 0;
}

div.hero-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10% 5%;
    background-color: #02afec;
}

.hero-center h1 {
    text-align: center;
    color: #ffffff;
}

.hero-center p {
    text-align: center;
    font-size: 1rem;
    color: #f2f2f2;
}

/* ----- UTILITY ----- */


.section {
    margin: auto;
    background: #f5f5f5;
}

.contact {
    background: #f2f2f2;
    max-width: 1000px;
}

/* ----- FORM ----- */
form {
    background: #f5f5f5;
    border-radius: 8px;
    padding-bottom: 5%;
    
}

.form-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
    padding-top:5%;
  
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    margin-top: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #02afec;
    border-radius: 70px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fff;
    box-sizing: border-box;
}

form button {
    display: block;
    margin-left: auto;
 
    padding-left: 4rem;
    padding-right: 4rem;
}

/* ----- FOOTER ----- */
footer {
    background: #02afec;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  

}

.footer-row{
    display: flex;
    flex:row;
 justify-content: space-between;  
 gap:1rem;
    
}
 .footer-row2{
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin:2rem
 }

.footer-row, footer-row2 p {
  text-transform: uppercase;
    font-size: 16px;
    padding:2rem;  
}

.footer-divider {
    padding:0;
    height: 1px;
    background-color: #ffffff;
    width: 100%;
}

.animated-fadein {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.animated-fadein.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
/* ----- MEDIA QUERIES ----- */
@media (max-width: 768px) {
    /* Header e Navigazione */
    .header-inner {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 0.5rem;
        color: #797781;
        transition: all 0.3s ease;
    }
    
    nav a:hover {
        color: #02afec;
        background-color: #f8f8f8;
    }
    
    nav .button1 {
        display: block;
        width: 5%;
        max-width: 10%;
        text-align: center;
        margin: 0;
        box-sizing: border-box;
        padding: 0.5rem 0.5rem;
    }
    
    .button1:hover {
        color: #19a5d7;
    }
    
    .logo img {
        width: 200px;
        max-width: 90%;
    }
    
    /* Layout */
    .hero, .hero-white, .hero-whois {
        flex-direction: column;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    #Oleawise1 .text-row,
    .hero-white,
    .hero-center,
    .hero-whois,
    .form-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    #Oleawise1 .text-row {
        padding-top: 5%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    #Oleawise1 .text-row h1,
    #Oleawise1 .text-row p.column {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hero-title {
        padding-top: 5%;
    }
    
    /* Typography */
    
    h1 {
    font-size: 2rem;
    
}

h2 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3rem;
}

a {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}
    /* Images */
   
    #Oleawise2 .content-wrapper {
        flex-direction: column-reverse;
    }
    
    /* Form */
    .form-container {
        flex-direction: column;
        gap: 20px;
    }
     
/* Aggiungi questa regola per il contenitore di Oleawise2 */
#Oleawise2 {
    display: flex;
    flex-direction: column;
    width: 100%;   
}

/* Mantieni il layout interno con il padding desiderato */
#Oleawise2 .content-wrapper {
    padding: 0 5% 5%;
}


/* Reset generale per tutte le sezioni */
section {
    margin: 0;
    padding: 0;
    
    box-sizing: border-box;
    position: relative;
}

/* Sfondo esteso per tutte le sezioni con sfondo bianco */
section#Oleawise2, 
section#Olea, 
section#chi-siamo, 
section#contatti,
.hero-white, 
.hero-whois, 
.hero-title, 
.hero-title-form, 
form {

    overflow: hidden; /* Previene eventuali overflow che potrebbero creare spazi */
}

/* Assicura che non ci siano margini tra elementi interni */
.hero-title, 
.hero-whois, 
.hero-white {
    margin: 0;
    padding-bottom: 0;
}

/* Rimuovi lo spazio tra hero-title e le sezioni successive */
.hero-title + .hero-white,
.hero-title + .hero-whois {
    margin-top: 0;
    padding-top: 0;
}

}

/* Aggiungi media queries per mobile */
/* =============== MEDIA QUERIES =============== */
@media (max-width: 768px) {
    /* ----- HEADER E NAVIGAZIONE ----- */
    .header-inner {
        padding: 1rem 1rem;
    }
    
    /* Menu hamburger */
    .menu-toggle {
        display: flex;
        margin-right: 5%;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #02afec;
        display: block;
    }
    
    /* Menu di navigazione */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        gap: 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 0.5rem;
        color: #797781;
        transition: all 0.3s ease;
    }
    
    nav a:hover {
        color: #19a5d7;
        background-color: #f8f8f8;
    }
    
    nav .button1 {
        display: block;
        width: 30%;
        max-width: 30%;
        text-align: center;
        padding: 1rem 2rem;
        margin: 0;
        box-sizing: border-box;
    }
    
   nav .button1:hover {
    padding: 1rem 2rem;
    border-radius: 30px;
    max-width: 30%;
    color: #19a5d7;
    background-color: #000000;
    text-decoration: none;
    text-align: center;
   }
    
    
    /* Standardizzazione padding */
    .hero-title,
    #Oleawise1 .text-row,
    .hero-white,
    .hero-center,
    .hero-whois,
    .form-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    /* Padding specifici */
    #Oleawise1 .text-row {
       
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        padding-top: 5%;
    }
    
    
    /* ----- IMMAGINI ----- */
    
    #Oleawise1 .text-row h1,
    #Oleawise1 .text-row p.column {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    #Oleawise2 .content-wrapper {
        flex-direction: column-reverse;
    }
   
    /* ----- FORM ----- */
    .form-container {
        flex-direction: row;
        gap: 20px;
    }
}