body {
    margin: 0;
    font-family:'Walter', 'Gruppo', 'Lavish', sans-serif;
    line-height: 1.6;
    background-color: rgb(255, 240, 220);
    color: #333;
}

header {
    background-image: url('../img/header.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    background-color: rgb(160,145,140);
    background-blend-mode:soft-light;
    padding: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

nav {
    background: #35424a;
    color: rgb(255,204,180);
    font-size: 130%;
    padding: 25px 0;
    text-align: center;
    margin: 20px 0;
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 5px; 
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgb(255,204,180);
    color: #35424a;
}

section {
    padding: 20px;
    margin: 20px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}


h1{
    font-family: 'Lavishly Yours', sans-serif;
    font-size: 100px;
    font-weight: 100;
    color: rgb(178, 247, 247);
    text-shadow: 5px 5px 0 rgba(6, 5, 5, 0.1);
}

@media (max-width: 600px) {
    nav {
        display: flex;
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }
    .info-container {
        flex-direction: column;
    }
    h1{
        font-size: 60px;
    }
}

h2 {
    font-family: 'Gruppo', sans-serif;
    font-size: 36px;
    color: #35424a;
    text-shadow:1px 1px 0 rgb(77,180,160) ;
}
h3 {
    font-family: 'Gruppo', sans-serif;
    font-size: 32px;
    color: rgb(77,180,160) ;
}

p {
    font-family: 'Walter Turncoat', sans-serif;
    font-size: 18px;
    color: #666;
}

a {
    color: rgb(160,145,140);
    text-decoration: dotted underline;
}

.logo{
    max-width: 200px;
    height: auto;
}

.torna-su {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background:#35424a;
    color:#ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.torna-su:hover {
    background: rgb(255,204,180);
    color: #35424a;
}

.social-icon {
    width: 25px;
    height: 25px;
    
}
.social-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}
.aicon {
    background: none;
    padding: 0%;
}
.aicon:hover{
    background: none;
}
.info-container {
    display: flex;
    gap: 20px; /* spazio tra i due div */
    align-items: flex-start;
}
.img-intext {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 250px;
    height: auto;
}

/* Modal per immagini */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    animation: zoomIn 0.4s;
}
@keyframes zoomIn {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
}
.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 40px;
    user-select: none;
    transition: 0.3s;
    z-index: 10001;
}
.prev { left: 30px; }
.next { right: 30px; }
.prev:hover, .next:hover { color: #ffd6b3; }
