/* --- VARIABILI GLOBALI E RESET --- */
:root {
  --orange: #ff7a00;
  --dark: #222;
  --mid: #444;
  --light: #ffffff;
  --muted: #9aa0a6;
  --bg: #0f0f0f;
  --dark-bg: #111;
  --medium-bg: #1c1c1c;
  --light-text: #f0f0f0;
  --medium-text: #cccccc;
  --border-color: #333;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--light);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

/* --- ELEMENTI COMUNI --- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  padding: .9rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}

.btn--sm {
  padding: .55rem .9rem;
  font-size: .95rem;
}

.btn--lg {
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
}

.btn--orange {
  background: var(--orange);
  color: #000;
}

.btn--gray {
  background: #444; /* Un grigio standard */
  color: #000000;      /* Testo scuro per un buon contrasto */
}

/* --- HEADER E NAVIGAZIONE --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
  padding: 20px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 700;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* --- SEZIONI GENERICHE E HERO --- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .65));
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 6rem 0;
}

.hero__title {
  font: 800 clamp(2rem, 4vw, 3.2rem) Montserrat, sans-serif;
  margin: 0 0 .6rem;
}

.hero__subtitle {
  color: #e9e9e9;
  margin: 0 auto 1.4rem auto; /* Centra il testo orizzontalmente */
  font-size: 1.2rem;          /* <-- AUMENTA LA DIMENSIONE DEL TESTO */
  max-width: 60ch;            /* (Consigliato) Limita la larghezza della riga per una migliore leggibilità */
}

.hero__image {
  width: 80%;
  height: 50%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.05);
}

.section {
  padding: 3.5rem 0;
  background: var(--bg);
}

.section--dark {
  background: #121212;
}

.section__title {
  font: 800 clamp(1.5rem, 3vw, 2.2rem) Montserrat, sans-serif;
  margin: 0 0 1.2rem;
  color: #fff;
}

.muted {
  color: var(--muted);
}

.testo-centrato {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* --- FOOTER --- */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  margin-top: 2rem;
  padding: 40px 20px 20px 20px;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 2rem 0;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-inline: auto;
}

.site-footer h3 {
  margin: .2rem 0 1rem;
  color: #fff;
  font: 400 1.05rem Montserrat, sans-serif;
}

.site-footer p {
  margin: .3rem 0;
  color: #d0d0d0;
}

.site-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-base {
  border-top: 1px solid #1a1a1a;
  padding: 1rem 0;
  text-align: center;
  color: #b8b8b8;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-base p {
    color: #fff;
    font-weight: 400;
    margin: 0;
}

/* --- COMPONENTI RIUTILIZZABILI --- */

/* Accordion (FAQ, Informazioni) */
.section-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.accordion-header {
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease-out;
}
.accordion-header.active::after {
    content: '−';
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 1.5rem;
}
.accordion-content.active {
    /* CORREZIONE: Usa 'height: auto' per forzare 
       il box ad adattarsi al contenuto. */
    height: auto;
    
    /* Usa un max-height enorme solo per permettere 
       all'animazione di funzionare (anche se 'height: auto'
       avrà la precedenza in apertura) */
    max-height: 9999px; 
    
    /* CORREZIONE: Assicura che l'overflow sia visibile 
       e non tagliato */
    overflow: visible; 
    
    padding: 1rem 1.5rem;
}
.accordion-content p {
    margin: 0;
    padding-bottom: 0.5rem;
}
.accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.accordion-content ul li {
margin-bottom: 0.5rem;
    white-space: normal;
    overflow-wrap: break-word;
}
.accordion-content b {
    font-weight: 700;
    color: var(--orange);
}

/* Swiper (Gallerie) */
.swiper {
  --swiper-theme-color: var(--orange);
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pswp__img { 
  object-fit: contain !important; 
}

/* Orari di apertura */
.opening-hours {
  background-color: #1a1a1a;
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 5rem 0;
}
.hours-list {
  max-width: 500px;
  margin: 0 auto;
}
.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hours-item:last-child {
  border-bottom: none;
}
.hours-item .day {
  font-weight: bold;
  text-transform: uppercase;
}
.hours-item .time {
  color: orange;
  font-weight: bold;
}
.current-day { 
  font-weight: bold; 
  color: var(--orange); 
}

/* Newsletter Form */
.newsletter-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.newsletter-section h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.newsletter-form input,
.newsletter-form select {
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  outline: none;
}
.privacy-policy {
  font-size: 0.9rem;
  text-align: left;
}
.privacy-policy a {
  color: var(--orange);
}
.newsletter-btn {
  background-color: var(--orange);
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* --- STILI SPECIFICI PER PAGINE --- */

/* Homepage */
.locations-section {
  padding: 4rem 0;
  background-color: #111;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  text-align: center;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.location-card {
  background-color: #1c1c1c;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.location-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 122, 0, 0.15);
}
.location-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 1.5rem;
}
.location-card h3 {
  margin: 0 0 0.8rem;
  font: 700 1.3rem Montserrat, sans-serif;
  color: #ffffff;
}
.location-card.is-disabled {
  position: relative;
  filter: grayscale(80%);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
.badge {
  position: absolute;
  top: 15px;
  right: -8px;
  background-color: var(--orange);
  color: #000;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 5px;
  transform: rotate(20deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.custom-list-item {
  list-style: none;
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}
.custom-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7a00'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Pagina Mestre */
.with-background { 
  position: relative; 
  z-index: 1; 
}
.with-background::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0.15; 
  z-index: -1; 
}
.gallery-card { 
  position: relative; 
  display: block; 
  border-radius: 16px; 
  overflow: hidden; 
  cursor: pointer; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
  height: 300px; 
}
.swiper-button-next, .swiper-button-prev { 
  color: var(--orange); 
  background-color: rgba(0, 0, 0, 0.5); 
  border-radius: 50%; 
  width: 44px; 
  height: 44px; 
}
.swiper-button-next:after, .swiper-button-prev:after { 
  font-size: 18px; 
  font-weight: bold; 
}
.attractions-tabs { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 1rem; 
  margin-bottom: 2.5rem; 
}
.attractions-tabs button { 
  background-color: #333; 
  color: white; 
  border: 1px solid #555; 
  padding: 0.8rem 1.5rem; 
  border-radius: 50px; 
  cursor: pointer; 
  font-weight: 600; 
  font-size: 1rem; 
}
.attractions-tabs button.active { 
  background-color: var(--orange); 
  color: #111; 
  border-color: var(--orange); 
}
.attractions-content .tab-pane { 
  display: none; 
}
.attractions-content .tab-pane.active { 
  display: block; 
}
.grid--attractions { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 1.5rem; 
}
.attraction-card { 
  background-color: transparent; 
  height: 350px; 
  perspective: 1500px; 
}
.attraction-card__inner { 
  position: relative; 
  width: 100%; 
  height: 100%; 
  transition: transform 0.8s; 
  transform-style: preserve-3d; 
}
.attraction-card:hover .attraction-card__inner { 
  transform: rotateY(180deg); 
}
.attraction-card__front, .attraction-card__back { 
  position: absolute; 
  width: 100%; 
  height: 100%; 
  backface-visibility: hidden; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
  border: 1px solid #2a2a2a; 
}
.attraction-card__front img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.attraction-card__front h3 { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent); 
  padding: 40px 1rem 1rem; 
  margin: 0; 
  font-size: 1.5rem; 
  text-align: center; 
}
.attraction-card__back { 
  background-color: #1e1e1e; 
  color: white; 
  transform: rotateY(180deg); 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  text-align: center; 
}
.attraction-card__back p { 
  margin: 0; 
  font-size: 0.95rem; 
  line-height: 1.6; 
  color: #ddd; 
}
.btn-info { 
  background-color: var(--orange); 
  color: white; 
  border: none; 
  border-radius: 20px; 
  padding: 8px 16px; 
  font-weight: 600; 
  cursor: pointer; 
  margin-top: 1rem; 
}
.info-box { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.7); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  padding: 1rem; 
  opacity: 0; 
  pointer-events: none; 
  border-radius: 16px; 
}
.info-box__content { 
  background-color: #2a2a2a; 
  border: 1px solid var(--orange); 
  border-radius: 12px; 
  padding: 1.5rem; 
  text-align: center; 
  color: white; 
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.5); 
}
.info-box__content h3 { 
  margin-top: 0; 
  color: var(--orange); 
}
.btn-close-info { 
  background: #444; 
  color: white; 
  border: 1px solid #666; 
  border-radius: 20px; 
  padding: 6px 14px; 
  margin-top: 1rem; 
  cursor: pointer; 
}
.attraction-card__back.info-active .info-box { 
  opacity: 1; 
  pointer-events: auto; 
}
.section-divider { 
  width: 50%; 
  max-width: 600px; 
  height: 3px; 
  background-color: var(--orange); 
  margin: 5rem auto; 
  box-shadow: 0 0 20px 5px rgba(255, 122, 0, 0.7); 
}
.grid--know { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2.5rem; 
  align-items: center; 
}
.grid--know.reversed {
  grid-template-columns: 1fr;
}
.content--know { 
  text-align: center; 
}
.media--know { 
  display: flex; 
  justify-content: center; 
}
.static-image-container { 
  display: block; 
  width: 100%; 
  max-width: 450px; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
}
.static-image-container img { 
  width: 100%; 
  height: auto; 
  display: block; 
}


/* Pagina Feste */
.swiper-slide.room-swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--border-color);
}
.room-swiper .swiper-slide-active {
    border-color: var(--orange);
    box-shadow: 0 0 25px var(--orange);
}
.room-swiper .room-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 25px 15px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.booking-form {
    display: grid;
    gap: 1.5rem;
    background-color: var(--medium-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}
.booking-form label {
    font-weight: 700;
    margin-bottom: -0.8rem;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2a2a2a;
    color: var(--light-text);
    font-size: 1rem;
}

/* Pagina Privacy */
.regolamento-body {
  background-color: #000;
}
.regolamento-main h1 {
    text-align: center;
    font-size: 2.5em;
    color: var(--orange);
    margin-bottom: 20px;
}
.privacy-content h2 {
    color: var(--orange);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.privacy-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.privacy-content p, .privacy-content li {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.privacy-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.privacy-content b, .privacy-content strong {
    color: #f0f0f0;
}

/* --- MEDIA QUERIES --- */

/* Stili per schermi piccoli (es. telefoni) */
@media (max-width: 768px) {
    .burger { 
        display: block; 
    }
    .main-nav { 
        display: none; 
        position: absolute; 
        top: 80px; /* Aumentato leggermente per dare più spazio */
        left: 0; 
        right: 0; 
        background-color: rgba(17, 17, 17, 0.98); 
        backdrop-filter: blur(8px); 
        width: 100%; 
        flex-direction: column; 
    }
    .main-nav a { 
        padding: 1.2rem; /* Aumentato per essere più cliccabile */
        text-align: center; 
        border-bottom: 1px solid #333; 
        width: 100%;
        font-size: 1.1rem; /* Testo leggermente più grande */
    }
    .main-nav a:last-child { 
        border-bottom: none; 
    }
    .nav-wrap.nav-active .main-nav { 
        display: flex; 
    }

    /* Regola corretta per il pulsante "Prenota" nel menu mobile */
    .main-nav .btn {
      display: block;
      width: auto; /* Lasciamo che si adatti al padding */
      margin: 1rem 2rem; /* Aggiunge spazio sopra/sotto e ai lati */
      padding: 1rem;
    }
    
    .opening-hours .section__title { text-align: center; } 
    .hours-list { 
        display: flex; 
        flex-direction: column; 
        gap: 0.5rem; 
        align-items: center; 
    } 
    .hours-item { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
}

/* Stili per schermi grandi (es. desktop) */
@media (min-width: 992px) { 
  .grid--know { 
      grid-template-columns: 1fr 1fr; 
  }
  .grid--know.reversed { 
      grid-template-columns: 2fr 3fr; 
  }
  .content--know { 
      text-align: left; 
  } 
}