
html {
    scroll-behavior: smooth; 
}

body {
    background-color: #222;
    color: #ffffff; 
    font-family: 'Roboto', sans-serif; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: 'Dancing Script', cursive; 
    color: #ffd000; 
    text-align: center;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

pi {
    font-family: 'Dancing Script', cursive; 
    color: #000000; 
    text-align: center;
    font-weight: 700;
}

pi {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 3rem;
    margin-top: 2em;
}

h3 {
    font-size: 2.2rem;
    color: #fddc53;
}




.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Immagine parallax che si muove */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%; 
    background-image: url('casa.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}


.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenuto */
.hero-section .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}






.content-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

p, li {
    font-size: 1.1rem;
    color: #e0e0e0;
}

ti {
    font-size: 1.1em;
    color: #FFFFFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

in {
    font-size: 1.3rem;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    background-color: #e57373; 
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #ef9a9a;
    transform: translateY(-3px); 
}





.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-form label {
    font-size: 1.2rem;
    color: #fdd835;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.contact-form button {
    cursor: pointer;
    border: none;
    align-self: flex-start; 
}


.contact-details ul {
    list-style: none;
    padding: 0;
    text-align: center;
}


.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
    
footer {
      text-align:center;
      padding:15px;
      background:rgba(20, 20, 20, 0.7);
    }
    
logo {
      text-align:border;
      padding:0px;
      background:rgba(20, 20, 20, 0.7);
    }
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-sizing: border-box;
    transition: top 0.4s ease-in-out; 
}

.top-bar--hidden {
    top: -240px; 
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    margin-right: 15px;
    
}

.header-title {
    font-size: 4rem;
    color: #000000;
    margin: 0;
    font-family: 'Dancing Script', cursive;
}

.header-contacts {
    display: flex;
    align-items: right;
    gap: 20px;
}

.header-contacts a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-contacts a:hover {
    color: #fdd835;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; 
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {

    /* Cambiamo la direzione della navbar da orizzontale a verticale */
    .top-bar {
        flex-direction: column;
        gap: 15px; /* Aggiunge spazio tra il blocco logo e il blocco contatti */
    }

    /* Riduciamo la dimensione del logo e del titolo */
    .logo-img {
        height: 60px;
    }

    .header-title {
        font-size: 2.5rem;
    }

    /* Facciamo in modo che i contatti possano andare a capo se non c'è spazio */
    .header-contacts {
        flex-wrap: wrap;
        justify-content: center; /* Centriamo i contatti */
        gap: 15px; /* Aumentiamo lo spazio per una migliore leggibilità */
    }

    /* Aggiungiamo un po' di spazio sotto i link dei contatti per separarli */
    .header-contacts a {
        margin-bottom: 5px;
    }
}