:root {
  --accent-color: #357994;
}

/* Base */
body {
  padding-top: 60px;
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Castellar', serif;
}

h2 {
  color: var(--accent-color);
}

/* Header e Navigazione */
header {
  background: var(--accent-color);
  color: white;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--accent-color);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Hero full screen */
.hero {
  background: url('immagini/hero/hero.jpg') center/cover no-repeat;
  height: 100vh;          /* occupa tutta l’altezza */
  width: 100%;            /* occupa tutta la larghezza */
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}


.hero::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, white 100%);
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.hero-logo {
  max-width: 150px;   /* dimensione massima del logo */
  width: 100%;        /* si adatta allo spazio disponibile */
  height: auto;       /* mantiene le proporzioni */
  display: block;     /* forza il logo su una riga propria */
  margin: 0 auto 20px; /* centrato e con spazio sotto */
}

/* Sezioni generali */
section {
  padding: 2rem 0;
}

/* Sezioni camere: strette e centrate */
#camere, #prezzi-libeccio, #prezzi-scirocco {
  max-width: 900px;   /* larghezza massima */
  margin: 0 auto;     /* centra */
  padding: 0 2rem;    /* stessa distanza dai margini */
  text-align: justify;
}

/* Sezioni camere: strette e centrate */
#camere,
#prezzi-libeccio,
#prezzi-scirocco,
.room {
  max-width: 900px;   /* larghezza massima */
  margin: 0 auto;     /* centra */
  padding: 0 2rem;    /* stessa distanza dai margini */
  text-align: justify;
}


.room {
  margin-bottom: 2rem;
}

.room h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.table-container {
  overflow-x: auto;              /* abilita scroll orizzontale */
  -webkit-overflow-scrolling: touch; /* scorrimento fluido su iOS */
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: center;
}


/* Preventivo */
.preventivo-container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.preventivo-container h2 {
  text-align: center;
  color: #357994;
  margin-bottom: 20px;
}

.preventivo-container form {
  display: grid;
  gap: 15px;
}

.preventivo-container label {
  font-weight: bold;
  color: #333;
}

.preventivo-container input,
.preventivo-container select,
.preventivo-container textarea,
.preventivo-container button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.preventivo-container button {
  background: #357994;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.preventivo-container button:hover {
  background: #0066cc;
}

#risultato {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #357994;
  text-align: center;
}

.avviso-preventivo {
  font-size: 1em;
  color: #555;
  margin-top: 8px;
  text-align: center;
}
.avviso-preventivo strong {
  color: #006699;
}




/* Gallerie */
.gallery,
.room-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.gallery img,
.room-gallery img,
.thumb {
  width: 100%;
  max-width: 300px;
  margin: 0.5rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover,
.room-gallery img:hover,
.thumb:hover {
  transform: scale(1.05);
}

/* Tabelle prezzi */
#prezzi-libeccio table,
#prezzi-scirocco table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#prezzi-libeccio th, #prezzi-libeccio td,
#prezzi-scirocco th, #prezzi-scirocco td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: center;
}

#prezzi-libeccio th,
#prezzi-scirocco th {
  background-color: #357994;
  color: white;
  font-weight: bold;
}

#prezzi-libeccio tr:nth-child(even),
#prezzi-scirocco tr:nth-child(even) {
  background-color: #cdecfa;
}

#prezzi-libeccio tr:nth-child(odd),
#prezzi-scirocco tr:nth-child(odd) {
  background-color: #e8f8ff;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

#close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Contatti */
#contatti i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 1.2rem;
}

#contatti a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

#contatti a:hover {
  text-decoration: underline;
}

/* Mappa */
.map-container {
  margin-top: 1rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  overflow: hidden;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    text-align: right;
    padding: 0.5rem 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: var(--accent-color);
    padding: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .gallery,
  .room-gallery {
    flex-direction: column;
    align-items: center;
  }

  .gallery img,
  .room-gallery img {
    max-width: 90%;
  }
}

#chi-siamo,
#camere,
#prezzi-libeccio,
#prezzi-scirocco,
#galleria,
#contatti {
  max-width: 900px;   /* larghezza massima */
  margin: 0 auto;     /* centra */
  padding: 2rem;      /* spazio interno uniforme */
  text-align: justify;
}