html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #000;
    background-color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
}

header .logo .trallallero {
    margin: 0;
    font-size: 3rem;
    font-weight: 500;
    color: #000;
}

header .logo a {
    text-decoration: none;
    color: #000;
}

.h4 a {
    font-size: 2rem;
    color: #303030;
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-decoration: underline;
    text-underline-offset: 10px;
    line-height: 150%;
}

.h4 a:hover {
    text-decoration: none;
    background-color: #c994d2;
}

footer {
    margin-left: 1%;
    line-height: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

nav ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.hamburger-menu .bar {
    width: 100%;
    height: 4px;
    background-color: #000;
    border-radius: 4px;
    transition: 0.3s ease;
    margin: 2px 0;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    transform-origin: center;
    margin-top: -2px;
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    transform-origin: center;
    margin-top: -2px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 900;
}

@media screen and (max-width: 768px) {
    #nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }

    #nav-list.active {
        display: flex;
    }

    nav ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: auto;
    }

    nav ul li a {
        font-size: 3rem;
        color: #000;
    }
}

@media screen and (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

.gallery {
    padding: 2rem;
}

.gallery h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.image-item {
    display: flex;
    flex-direction: column;
    width: calc(33.33% - 1rem);
    position: relative;
    overflow: hidden;
}

.image-item:nth-child(3n) {
    margin-right: 0;
}

.image-item a {
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-item a::before {
    content: '';
    display: block;
    padding-top: 66.66%;
}

.image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.image-item .description {
    font-size: 1rem;
    color: #303030;
    text-align: center;
    margin-top: 1rem;
    padding: 0 1rem;
    word-wrap: break-word;
    box-sizing: border-box;
    font-weight: bold;
}

.image-item a:hover img {
    opacity: 0.3;
}

.image-item a:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .image-item {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .image-item {
        width: 100%;
    }
}

.meloni-gallery {
    padding: 2rem;
}

.meloni-gallery h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 125%;
}

.meloni-gallery h2 {
    font-size: 1.5rem;
    color: #303030;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.h2href {
    font-size: 1.5rem;
    color: #303030;
    margin-bottom: 2rem;
}

.h2href a:hover
{
    text-decoration:none;
}

@media (max-width: 768px) {
    .meloni-gallery h1 {
        font-size: 2rem;
    }
    .meloni-gallery h2 {
        font-size: 1rem;
    }
    .h2href {
    font-size: 1rem;
    color: #303030;
}
}

.meloni-gallery .image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.meloni-gallery .image-container a {
    position: relative;
    overflow: hidden;
    width: calc(33.33% - 1rem);
}

.meloni-gallery .image-container a::before {
    content: '';
    display: block;
    padding-top: 66.66%;
}

.meloni-gallery .image-container .vertical {
    position: relative;
    width: calc(33.33% - 1rem);
}

.meloni-gallery .image-container .vertical::before {
    content: '';
    display: block;
    padding-top: 66.66%;
}

.meloni-gallery .image-container a img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meloni-gallery .image-container a.vertical img {
    width: auto;
    height: 100%;
}

.meloni-gallery .image-item.vertical {
    width: calc(33.33% - 1rem);
}

.meloni-gallery .image-container a:hover img {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.meloni-gallery .image-container a:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.meloni-gallery .image-container a.square img {
    width: auto;
    height: 100%;
}

@media (max-width: 768px) {
    .meloni-gallery .image-container a {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .meloni-gallery .image-container a {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .meloni-gallery .image-container .vertical {
        width: calc(48%);
    }
}

@media (max-width: 480px) {
    .meloni-gallery .image-container .vertical {
        width: 100%;
    }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox .image-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 90%;
    text-align: center;
    z-index: 1001;
}

@media (max-width: 767px), (max-width: 480px){
    .lightbox .image-name {
    font-size: 14px;
    }
}

.lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 100;
}

.lightbox .close-btn {
    position: absolute;
    top: 1%;
    right: 1%;
    font-size: 4.5rem;
    color: white;
}

.lightbox .close-btn {
    position: absolute;
    top: 1%;
    right: 1%;
    font-size: 4.5rem;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

.lightbox .prev-btn,
.lightbox .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    z-index: 1002;
}

.lightbox .prev-btn {
    left: 5%;
}

.lightbox .next-btn {
    right: 5%;
}

.lightbox .prev-btn:hover,
.lightbox .next-btn:hover {
    color: #c994d2;
}

.lightbox .prev-btn,
.lightbox .next-btn {
    border-radius: 50%;
}

@media (max-width: 768px), (max-width: 480px) {
    .lightbox .prev-btn,
    .lightbox .next-btn {
        position: relative;
        display: inline-block;
        margin: 20px 2px;
        font-size: 3rem;
        line-height: 60px;
        width: auto;
        height: auto;
    }

    .lightbox .button-container {
        display: flex;
        justify-content: center;
        margin-top: 2px;
        order: 1;
    }

    .lightbox img {
        order: 0;
    }
}

.lightbox .button-container {
    display: none;
}

@media (max-width: 768px), (max-width: 480px) {
    .lightbox .button-container {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 906px) {
    .lightbox .prev-btn, .lightbox .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    .lightbox .prev-btn {
        left: 10px;
    }
    .lightbox .next-btn {
        right: 10px;
    }
}

section.contact {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    section.contact {
        max-width: 90%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    section.contact {
        max-width: 90%;
        margin: 0.5rem;
        padding: 1rem;
    }
}

section.contact h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

section.contact p {
    font-size: 1.2rem;
    color: #303030;
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-block;
    text-decoration: none;
    color: #000000;
    font-size: 1.2rem;
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: #c994d2;
    color: white;
}

.copy-message {
    display: none;
    font-size: 1.2rem;
    color: white;
    background-color: rgb(39, 200, 25);
    margin-left: 10px;
    padding: 0.5rem;
    border-radius: 4px;
}

section.contact h4 {
    font-size: 1.2rem;
    color: #303030;
}

.instagram-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.instagram-image:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo .trallallero {
        font-size: 3.5rem;
        text-align: center;
        line-height: 115%;
        padding-bottom: 1%;
    }

    .h4 a {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    section.contact {
        padding: 1rem;
    }

    section.contact h2 {
        font-size: 2rem;
    }

    section.contact p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header .logo .trallallero {
        font-size: 2.5rem;
        text-align: center;
        line-height: 115%;
    }

    .h4 a {
        font-size: 1.5rem;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    section.contact h2 {
        font-size: 1.8rem;
    }

    section.contact p {
        font-size: 0.9rem;
    }

    .gallery h2 {
        font-size: 2rem;
    }

    .image-item {
        width: 100%;
    }
}

.slideshow{
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-container .slide-image.center {
    width: 800px;
    height: 533px;
    object-fit: cover;
}

.slideshow-container .slide-image.left,
.slideshow-container .slide-image.right {
    width: 33.33%;
    height: 533px;
    object-fit: cover;
    opacity: 1;
}

@media (max-width: 768px) {
    .slideshow-container .slide-image.left,
    .slideshow-container .slide-image.right {
        display: none;
    }

    .slideshow-container .slide-image.center {
        width: 100%;
        height: auto;
        max-height: 66.67vw;
        object-fit: cover;
    }

    .slideshow-container .slide-image {
        opacity: 0;
        transition: opacity 0.1s ease;
    }

    .slideshow-container .slide-image.show {
        opacity: 1;
    }
}

.slideshow-container .slide-image {
    margin: 0 1px;
}

.arrowesse {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: #ffffff;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transform: translateY(-50%);
    transition: color 0.3s;
}

.prev-arrow {
    left: 2%;
}

.next-arrow {
    right: 2%;
}

.arrowesse:hover {
    color: #7e7e7e;
}

@media screen and (max-width: 768px) {
    .prev-arrow,
    .next-arrow {
        display: none;
    }
}
.toggle-read-more {
    color: blue;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 5px;
}

.toggle-read-more:hover {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    header .logo {
        margin-bottom: 0 !important;
    }
    header .logo .trallallero {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hamburger-menu {
        margin-top: 0.5rem !important;
    }
    
    body#meloni header {
        padding-bottom: 0.5rem !important;
    }
    
    .meloni-gallery h1 {
        margin-top: -0.5rem !important;
    }

    .gallery h2 {
        margin-top: -0.5rem !important;
    }
}