@font-face {
    font-family: 'per-titolo';
    src: url('CORMORANT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'titolo';
    src: url('DIVEBAR.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

a button {
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
}

button:focus {
    outline: none;
    box-shadow: none;
}

body {
    font-family: 'per-titolo', sans-serif !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: rgba(245, 243, 229) !important;
    color: #333;
}

.head {
    background: transparent;
}

.hero {
    background: url(img/sfondo1.jpg) no-repeat center center;
    background-size: cover;
    /* Copre interamente lo schermo 100vh :contentReference[oaicite:1]{index=1} */
}

.hero .hero-content {
    width: 100%;
    max-height: 130px;
    font-family: 'per-titolo', sans-serif;
}

.b-prenota {
    font-size: small;
    text-decoration: none;
    padding: 0px;
}

.header-bar {
    background: transparent;
    padding: 0px 5px;
    padding-bottom: 0px;
}

.text-white {
    color: white !important;
}

.ico-menu {
    color: white;
    font-size: 27px;
}

.nr2 {
    color: black;
}

.b-prenota {
    font-size: 20px;
}

.titolo {
    text-align: center;
    font-size: 40px;
    line-height: 0.9;
    /* valore più basso = righe più ravvicinate */
}

.btn {
    margin: 0PX solid transparent;
}

.list-unstyled li {
    margin: 15px;
    font-size: 20px;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(225, 223, 209);
    color: black;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 0 0;
    z-index: 1000;
}

.footer-item {
    text-align: center;
    font-size: 0.8rem;
}

.footer-item img {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 5px;
}

.text-box {
    max-width: 600px;
    margin: 20px 15px;
    line-height: 1.5;
    background-color: rgba(245, 243, 229);
    justify-content: center;
}

#toggle-btn {
    background-color: transparent;
    color: black;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    border: none;
    cursor: pointer;
    margin: 0 auto;
    font-size: 14px;
}

#frase-effetto {
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
}

#contatti {
    margin: 20px 15px;
    margin-bottom: 100px;
}

#contatti p {
    line-height: 0.8;
}

#contatti img {
    width: 15px;
}

.contact-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
}

.contact-block {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    margin: 8px;
}

#contatti a {
    color: black;
    text-decoration: none;
}

.maps {
    width: 85%;
    margin: auto;
    margin-top: 10px;
}

.immagine {
    margin: 15px;
}

#img2 {
    width: 100%;
    /* Adatta l'immagine alla larghezza del contenitore */
    height: auto;
    /* Mantiene le proporzioni */
    display: block;
    /* Elimina lo spazio sotto l'immagine */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Aggiunge ombra per risalto */
    object-fit: cover;
    /* Ritaglia e riempie mantenendo il contenuto */
}

.carousel {
    position: relative;
    overflow: hidden;
    max-width: 600px;
    height: 230px;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 23px;
    height: 23px;
}

#appartamento {
    text-align: center;
    margin: 30px 15px;
}

#servizi {
    margin-bottom: 100px;
    padding: 0 10px;
}

#servizi img {
    width: 25px;
}

#persone {
    width: 25px;
}

#btn-prenota {
    background-color: transparent;
    margin: 20px auto;
    padding: 3px 13px;
    color: black;
    border: 1px solid black;
}

.container {
    display: grid;
    grid-template-columns: 1;
    /* Tre colonne uguali */
    gap: 20px;
    /* Spazi tra gli elementi */
    margin-top: 33px;
    margin-bottom: 100px;
}

.card {
    width: 300px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: auto;
}

.card img {
    width: 100%;
    margin-bottom: 15px;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.4em;
}

.card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1;
}

.card .button {
    display: inline-block;
    margin: 0 auto;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(245, 243, 229);
    color: black;
    text-decoration: none;
    width: 150px;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(245, 243, 229, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 50PX;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 16px;
}

.overlay-content a {
    font-size: 1.3rem;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}


.list-element {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: black;
    display: block;
    transition: 0.5s;

}

.list-element:hover,
.list-element:focus,
.list-element:active,
.list-element:visited {
    text-decoration: none !important;
}

.list-element span {
    cursor: pointer;
}

.closebtn {
    position: absolute;
    color: black;
    top: 20px;
    right: 35px;
    font-size: 23px;
    text-decoration: none;
}

.traduzione {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
}

#it {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}

#en_en {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}

.masonry {
    column-gap: 10px;
    column-count: 1;
    max-width: 1200px;
    margin: auto;
}

.masonry img {
    width: 100%;
    margin: 0 0 10px;
    display: block;
    object-fit: cover;
}

#cont-galleria {
    margin: 15px 10px;
    margin-bottom: 100px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h1.animated {
    opacity: 0;
    animation: fadeSlideIn 1s ease-out forwards;
}

.fade-slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.codici {
    margin-top: 20px;
}

.colazione {
    margin-top: 20px;
}

.regolamento {
    margin: 20px 0px;
    margin-bottom: 100px;
}

.card-cont {
    padding: 20px 15px;
    padding-bottom: 100px;
}

.card-img {
    width: 100%;
    height: auto;
    margin: 23px 0;
}

.navbar {
    display: none;
}

#pc-1 {
    padding: 0 10px;
}

#home-titolo {
    font-family: 'titolo', sans-serif !important;
    font-size: larger;
}

@media (min-width: 530px) {

    /* Stile base per la navbar */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        height: 50px;
        background-color: rgba(225, 223, 209);
        color: black;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        z-index: 1000;
    }

    .menu {
        width: auto;
        height: 100%;
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
    }

    .menu div {
        color: black;
        text-decoration: none;
        margin: 0;
        font-weight: bold;
        padding: 0 16px;
        transition: color 0.8s ease;
        /* Durata e tipo di transizione */
    }

    .menu div:hover {
        color: rgba(180, 179, 169);
        text-decoration: none;
    }

    .menu a {
        text-decoration: none;
    }

    .traduzione {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .traduzione a {
        color: black;
        text-decoration: none;
    }

    #it {
        border-bottom: 2px solid black;
        padding-bottom: 2px;
    }

    #en_en {
        border-bottom: 2px solid black;
        padding-bottom: 2px;
    }

    .hero {
        background: url(img/sfondopc.jpg) no-repeat center center;
        background-size: cover;
        /* Copre interamente lo schermo 100vh :contentReference[oaicite:1]{index=1} */
    }

    #home-titolo {
        text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
    }

    .masonry {
        column-count: 3;
    }

    p {
        font-size: large;
    }

    .text-box {
        margin: 30px auto;
    }

    #frase-effetto {
        font-size: 2.3rem;
    }

    #contatti {
        max-width: 700px;
        margin: 30px auto;
        margin-bottom: 150px;
        text-align: center;
    }

    #contatti img {
        width: 25px;
    }

    #contatti span {
        font-size: larger;
    }

    iframe {
        height: 350px;
    }

    .carousel {
        max-width: 800px;
        height: 380px;
        margin: auto;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 50px;
        background-color: rgb(0, 0, 0, 0.9);
        border-radius: 8px;
    }

    #toggle-btn {
        font-size: large;
    }

    #btn-prenota {
        text-align: center;
        padding: 15px 30px;
    }

    #servizi {
        max-width: 800px;
        margin: 30px auto;
        margin-bottom: 100px;
    }

    #servizi img {
        width: 35px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);

    }

    .card {
        width: 350px;
        height: 500px;
        font-size: large;
    }

    #pc-1 img {
        width: 35px;
    }

    #pc-1 {
        max-width: 800px;
        margin: auto;
    }

    .card-img {
        max-width: 700px;
        display: block;
        margin: 25px auto;
    }

}