.dropdown {
    position: relative;
    display: flex;
    flex: 1 1 45%;
    min-width: 115px;
    justify-content: center;
    padding-bottom: 5px;
}

.dropbtn {
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown:hover .dropbtn {
    background-color: #faf7f0;
    color: #c3af78;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #c3af78 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #c3af78;
    color: #c3af78 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

* {
    font-family: "Times New Roman", serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #faf7f0;
}

#intestazione {
    width: 100%;
    background-color: #faf7f0;
    padding: 12px 0;
    border-bottom: 1px solid #e5d9c0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 15px;
}

#intestazione img {
    height: 85px;
}

h1 {
    color: #c3af78;
    font-size: 34px;
    margin: 0;
}

#menu {
    width: 100%;
    background-color: #c3af78;
    padding: 16px 10px;
    text-align: center;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
}

#menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    flex: 1 1 45%;
    min-width: 115px;
    white-space: nowrap;
}

#menu a:hover {
    background-color: #faf7f0;
    color: #c3af78;
}

@media (min-width: 769px) {
    #menu {
        flex-wrap: nowrap;
        padding: 15px 20px;
        gap: 12px;
    }

    #menu a {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 18px;
    }

    .dropdown {
        flex: 0 0 auto;
        min-width: auto;
    }
}

#contenuto {
    width: 100%;
    min-height: 600px;
    background-color: #faf7f0;
    font-size: 18px;
    color: #333333;
    padding: 25px 15px;
}

#piepagina {
    width: 100%;
    height: 60px;
    background-color: #c3af78;
    text-align: center;
    font-size: 13px;
    color: #ffffff;
    padding-top: 12px;
}

@media (max-width: 768px) {
    #intestazione img {
        height: 52px;
    }

    h1 {
        font-size: 23px;
    }

    .header-content {
        gap: 10px;
    }

    #menu a {
        font-size: 15px;
        padding: 11px 12px;
    }
}

.video-container {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border: 3px solid #c3af78;
    border-radius: 25px;
    overflow: hidden;
    margin: 20px auto;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.btn-gallery {
    display: inline-block;
    padding: 14px 30px;
    background-color: #c3af78;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-gallery:hover {
    opacity: 0.85;
}

.gallery-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    text-align: center;
}

.gallery-container img {
    width: 100%;
    height: auto;
    border: 3px solid #c3af78;
    border-radius: 25px;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

@media (max-width: 768px) {
    .gallery-container {
        width: 70%;
        gap: 5px;
    }

    .prev, .next {
        font-size: 22px;
        padding: 8px 10px;
    }
}

.card-link{
    text-decoration:none;
    color:inherit;
}

.card{
    width:300px;
    border:1px solid #ddd;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}

.card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.card h3{
    margin:10px;
}

.card p{
    margin:10px;
}

.cards-table td {
    padding-top: 20px;
    padding-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .cards-table, 
    .cards-table tr, 
    .cards-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: center !important;
    }

    .card {
        margin: 20px auto !important;
        display: inline-block !important;
        text-align: left;
    }

    .cards-table td[colspan="2"] {
        padding: 0 10px !important;
    }
}