.menu_header {
    position: fixed;      /* resta sempre visibile */
    top: 0;               /* in cima alla pagina */
    left: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /*background-color: antiquewhite;*/
    background-color: rgb(255, 234, 208);
    width: 100%;
    height: 100px;
}
.logo_header {
    width: 100%;
    max-width: 200px;
    height: auto;
}
.box_header {
    flex: 1;
    padding: 33px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: saddlebrown;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}
.box_header:hover {
    background-color: burlywood;
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1; /* prende tutto lo spazio disponibile */
  margin-bottom: 20px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* cambia qui l'opacità */
}

/* Titolo sopra (sempre visibile) */
.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
}
.title_zara {
  font-family: 'Alex Brush', cursive;
  font-size: 140px;
  line-height: 1;
  margin: 0;
}
.title_rooms {
  font-family: 'Cinzel', serif;
  font-size: 50px;
  letter-spacing: 6px;
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.logo img {
  width: 800px; /* cambia dimensione */
  max-width: 90vw;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* Frecce */
button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}
button.prev {
  left: 10px;
}
button.next {
  right: 10px;
}
.p_description {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.pic_backgound {
  width: 80%; 
  display:block; 
  margin:auto;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

#map { height: 400px; width: 100%; }
.references_footer {
    background-color: rgb(255, 234, 208);
    padding-top: 40px;
}
.footer_table {
    font-weight: bold;
    text-align: center;
    vertical-align: top !important;
    color: black;
    text-decoration: none;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}
.footer_logo {
    width: 100%;
    max-width: 20px;
    height: auto;
    padding-right: 5px;
}

.footer_titles td {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    vertical-align: top !important;
    color: saddlebrown;
    text-decoration: none;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.footer_titles td > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_content td {
    padding-top: 10px;
    text-decoration: none;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    font-weight: bold;
    text-align: center;
    vertical-align: top;
    color: black;
}

.footer_content {
    margin: 0;
}

.footer_content p {
    margin: 0;
}

.main_link {
    font-family: 'Alex Brush', cursive;
    font-size: 60px;
    color: saddlebrown;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

.main_link:hover {
  color: chocolate;
}

.main_paragraph {
  margin: 0;
  font-size: 30px;
}


.language-selector {
  position: relative;
  display: inline-block;
}

#language-button,
.language-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

#language-button img,
.language-options img {
  display: block;
  width: 28px;
  height: 19px;
  object-fit: cover;
}

.dropdown-arrow {
  font-size: 12px;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 42px;
  padding: 4px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.language-options button {
  width: 100%;
}

.language-options button:hover {
  background: #f0f0f0;
}

.language-options[hidden] {
  display: none;
}


/* ==========================
   ADATTAMENTO PER SMARTPHONE
   ========================== */

@media screen and (max-width: 768px) {

    /* Logo nella sezione principale */
    .logo img {
        width: 90vw;
        max-width: 90vw;
        height: auto;
    }

    /* Titolo principale */
    .title_zara {
        font-size: clamp(56px, 16vw, 90px);
    }

    /* Sottotitolo */
    .title_rooms {
        font-size: clamp(22px, 6vw, 36px);
        letter-spacing: clamp(2px, 0.8vw, 4px);
    }

    /* Testi descrittivi */
    .p_description {
        font-size: 16px;
        line-height: 1.6;
    }

    .main_paragraph {
        font-size: 20px;
    }

    .main_link {
        font-size: 44px;
    }

    /* Titoli del footer */
    .footer_titles td {
        font-size: 18px;
    }

    /* Mappa */
    #map {
        height: 300px;
        width: 100%;
    }

}


/* HEADER - SMARTPHONE */
@media screen and (max-width: 768px) {

    .menu_header {
        height: auto;
        min-height: 65px;
        padding: 8px 10px;
        box-sizing: border-box;
        gap: 4px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logo_header {
        width: auto;
        max-width: 100px;
        max-height: 48px;
        object-fit: contain;
    }

    .box_header {
        flex: 0 1 auto;
        padding: 10px 5px;
        font-size: 11px;
        text-align: center;
        overflow-wrap: break-word;
    }

    #language-button,
    .language-options button {
        padding: 4px;
    }

    #language-button img,
    .language-options img {
        width: 23px;
        height: 16px;
    }
}


/* FOOTER - SMARTPHONE */
@media screen and (max-width: 768px) {

    .references_footer {
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .footer_table {
        width: 100%;
        table-layout: fixed;
    }

    .footer_titles td {
        font-size: 16px;
        padding: 5px 3px;
        overflow-wrap: anywhere;
    }

    .footer_content td {
        font-size: 13px;
        padding: 8px 3px;
        overflow-wrap: anywhere;
        vertical-align: top;
    }

    .footer_logo {
        max-width: 16px;
        padding-right: 3px;
    }

    .footer_titles td > div {
        flex-wrap: wrap;
        gap: 3px;
    }
}

.contact-choice {
    position: relative;
    display: inline-block;
}

.contact-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: black !important;
    -webkit-text-fill-color: black;
    cursor: pointer;
    text-align: left;
}

.contact-toggle:hover,
.contact-toggle:active,
.contact-toggle:visited {
    color: black !important;
    -webkit-text-fill-color: black;
}

.contact-options {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.contact-options.is-open {
    display: flex;
}

.contact-options a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgb(255, 234, 208);
    color: saddlebrown !important;
    text-decoration: none;
    font-size: 14px;
}

.contact-options a:hover {
    background-color: burlywood;
}