/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f8f8;
}

header .logo {
  font-weight: bold;
  font-size: 24px;
  color: #2c3e50;
}

header nav a {
  margin-left: 20px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: #0077b6;
}

/* Hero section with background image (walkway in Cagliari) */
.hero {
  position: relative;
  height: 60vh;
  /* The hero uses a scenic photo of Via Roma in Cagliari to evoke the coastal ambiance */
  background-image: url('images/via_roma.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 8px;
}

.hero-overlay h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero-overlay p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.cta {
  background: #ffffff;
  color: #2c3e50;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.features {
  display: flex;
  flex-wrap: wrap;
  padding: 40px;
  gap: 30px;
  justify-content: center;
  /* Use a lightly overlaid photo of the promenade to enhance the section */
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('images/via_roma_fermata.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.feature {
  flex: 1 1 250px;
  /* Maggior padding e bordi arrotondati per un look più elegante */
  padding: 30px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  /* Delicata ombra per far risaltare i box delle feature */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.feature h2 {
  margin-bottom: 10px;
  color: #2c3e50;
  /* Font serif più ricercato per i titoli delle feature */
  font-family: 'Georgia', serif;
  font-size: 22px;
}

/* Stile per il testo delle feature */
.feature p {
  font-family: 'Georgia', serif;
  font-size: 16px;
}

.about, .contact {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about h1, .contact h1 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.about ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.contact form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact form label {
  margin-top: 10px;
  color: #2c3e50;
}

.contact form input,
.contact form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 16px;
}

.contact form button {
  margin-top: 15px;
  padding: 10px;
  border: none;
  background: #2c3e50;
  color: #ffffff;
  border-radius: 4px;
  cursor: not-allowed;
}

.contact-details p {
  margin-top: 5px;
  color: #333;
}

footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav {
    margin-top: 10px;
  }
  .hero {
    height: 50vh;
  }
  .hero-overlay h1 {
    font-size: 28px;
  }
  .features {
    flex-direction: column;
  }
}

/* Galleria fotografica nella pagina Chi siamo */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Stile per figure e didascalie nella galleria fotografica */
.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
  color: #555;
}

/* Immagine nella sezione contatti */
.contact-image {
  margin-top: 20px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Social links in footer */
.social-links {
  text-align: center;
  margin-top: 10px;
}

.social-links a {
  margin: 0 8px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Stile per il codice CIN visualizzato nella home */
.cin-code {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

/* Contenitore per l'icona social nel contattaci */
.social-contact {
  margin-top: 20px;
  text-align: left;
}

.social-contact a {
  display: inline-block;
}

/* Dimensioni dell'icona Instagram */
.instagram-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  /* Render the Instagram icon in white by inverting its colors */
  filter: brightness(0) invert(1);
}

/* Stile per l'icona Instagram posizionata nella home (hero) */
.social-home {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.instagram-home-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  /* Render the Instagram icon in white by inverting its colors */
  filter: brightness(0) invert(1);
}

/* Icon for Google Maps link in the hero */
.maps-home-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* Language switcher styles */
.lang-switch {
  margin-left: 10px;
}

.lang-switch a {
  margin-left: 10px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.lang-switch a:hover {
  text-decoration: underline;
}
