/* Reset e base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #f9f7f1, #d9cab3);
  color: #3a3a3a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tema scuro */
body.dark-theme {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  color: #eee;
}

/* Container generico */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

/* Navbar */
.header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease;
}

body.dark-theme .header {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 4px 15px rgb(255 255 255 / 0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #0077b6;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark-theme .logo {
  color: #ade8f4;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

body.dark-theme .nav-links a {
  color: #ade8f4;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0%;
  background: #0077b6;
  transition: width 0.3s ease;
}

body.dark-theme .nav-links a::after {
  background: #ade8f4;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #00b4d8;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Bottone toggle tema */
#toggle-theme {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #0077b6;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

body.dark-theme #toggle-theme {
  color: #ade8f4;
}

/* Main hero */
.main-hero {
  background-image: url('immagini/taranto.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem 1rem;
  position: relative;
}

.main-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.main-hero > * {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .main-hero {
    padding: 4rem;
  }
}

.main-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: #0077b6;
  margin-bottom: 1rem;
}

.main-hero h1 span {
  color: #00b4d8;
  font-weight: 700;
  text-shadow: 1px 1px 2px #00b4d888;
}

.main-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background: #00b4d8;
  color: white;
  font-weight: 700;
  padding: 0.9rem 2.4rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgb(0 180 216 / 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0077b6;
  box-shadow: 0 8px 20px rgb(0 119 182 / 0.7);
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgb(0 119 182 / 0.5);
  transform: scale(1);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}
/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 25px rgb(0 119 182 / 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

body.dark-theme .feature-card {
  background: #2a2a2a;
  box-shadow: 0 12px 25px rgb(0 119 182 / 0.15);
}

.feature-card i {
  color: #00b4d8;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  user-select: none;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #0077b6;
}

body.dark-theme .feature-card h3 {
  color: #ade8f4;
}

.feature-card p {
  font-size: 1rem;
  color: #023e8a;
}

body.dark-theme .feature-card p {
  color: #caf0f8;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgb(0 119 182 / 0.45);
}

/* Gallery preview */
.gallery-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #0077b6;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-radius: 15px;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgb(0 119 182 / 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover,
.gallery-grid a:focus {
  transform: scale(1.05);
  box-shadow: 0 14px 35px rgb(0 180 216 / 0.5);
}

.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
}

/* FOOTER */
footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

body.dark-theme .footer {
  background: rgba(0, 119, 182, 0.3);
  color: #ade8f4;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  font-size: 1.4rem;
}

.social-links a {
  color: #0077b6;
  transition: color 0.3s ease;
}

body.dark-theme .social-links a {
  color: #ade8f4;
}

.social-links a:hover,
.social-links a:focus {
  color: #00b4d8;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 900px) {
  .main-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .btn-primary {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }
  .hero-image img {
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}

/* Nuovo stile sezione gallery */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #023e8a;
}

body.dark-theme .section-title {
  color: #ade8f4;
}
body.dark-theme .section-subtitle {
  color: #caf0f8;
}

.gallery-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 25px rgb(0 119 182 / 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

body.dark-theme .feature-card {
  background: #2a2a2a;
  box-shadow: 0 12px 25px rgb(0 119 182 / 0.15);
}

.feature-card i {
  color: #00b4d8;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  user-select: none;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #0077b6;
}

body.dark-theme .feature-card h3 {
  color: #ade8f4;
}

.feature-card p {
  font-size: 1rem;
  color: #023e8a;
}

body.dark-theme .feature-card p {
  color: #caf0f8;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgb(0 119 182 / 0.45);
}

/* Gallery preview */
.gallery-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #0077b6;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-radius: 15px;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgb(0 119 182 / 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover,
.gallery-grid a:focus {
  transform: scale(1.05);
  box-shadow: 0 14px 35px rgb(0 180 216 / 0.5);
}

.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
}

/* FOOTER */
footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

body.dark-theme .footer {
  background: rgba(0, 119, 182, 0.3);
  color: #ade8f4;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  font-size: 1.4rem;
}

.social-links a {
  color: #0077b6;
  transition: color 0.3s ease;
}

body.dark-theme .social-links a {
  color: #0077b6;
}

.social-links a:hover,
.social-links a:focus {
  color: #0077b6;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 900px) {
  .main-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .btn-primary {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }
  .hero-image img {
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}

/* Nuovo stile sezione gallery */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #0077b6;
}

body.dark-theme .section-title {
  color: #0077b6;
}
body.dark-theme .section-subtitle {
  color: #0077b6;
}

.gallery-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
}

.gallery-item .overlay span {
  display: block;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

body.dark-theme .gallery-item .overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
  color: #ade8f4;
}

body.dark-theme .gallery-item .overlay span {
  background: rgba(255, 255, 255, 0.2);
}

.centered-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.language-selector {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.language-selector span {
  margin-bottom: 0.3rem;
}

.language-selector a img {
  margin-right: 5px;
  border-radius: 3px;
  transition: transform 0.2s;
}

.language-selector a img:hover {
  transform: scale(1.1);
}

.language-dropdown {
  position: relative;
}

.language-dropdown button {
	color: #0077b6;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #0077b6;
  border-radius: 0.5rem;
  padding: 0.5rem;
  list-style: none;
  box-shadow: 0 2px 8px rgba(0,119,182,0.15);
  z-index: 100;
}

.language-menu li {
  padding: 0.3rem 0.6rem;
}

.language-menu li a {
  text-decoration: none;
  color: #0077b6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-menu li a:hover {
  background-color: white;
  border-radius: 0.3rem;
}

body.dark-theme .language-menu {
  background-color: #0077b6;
  color: #0077b6;;
  border-color: #0077b6;
}

body.dark-theme .language-menu a {
  color: #0077b6;
}

body.dark-theme .language-menu a:hover {
  background-color: #0077b6;
}

body.dark-theme #language-toggle {
  color: #0077b6;
}

body.dark-theme #language-toggle i {
  color: #0077b6;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.dark-theme .hamburger span {
  background: #0077b6;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgb(0 119 182 / 0.4);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  list-style: none;
  z-index: 1000;
  min-width: 180px;
  font-weight: 600;
}


body.dark-theme .mobile-menu {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 8px 20px rgb(181 131 90 / 0.25);
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu li:last-child {
  margin-bottom: 0;
}

.mobile-menu li a {
  color: #654321;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  transition: color 0.3s ease;
}

body.dark-theme .mobile-menu li a {
  color: #e4cfa1;
}

.mobile-menu li a:hover,
.mobile-menu li a:focus {
  color: #0077b6;
}

/* Mostra hamburger su schermi piccoli */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Mostra menu mobile quando attivo */
.mobile-menu.show {
  display: block;
}

/* Mostra hamburger su mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0077b6;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  body.dark-theme .nav-links {
    background-color: #0077b6;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }
}

/* Linee dell'hamburger */
.hamburger span {
  width: 100%;
  height: 3px;
  background: #654321;
  transition: all 0.3s ease;
}

body.dark-theme .hamburger span {
  background: #e4cfa1;
}
body.dark-theme #hamburger {
  color: #cfa45d; /* oro scuro / goldenrod */
  /* oppure usa un marroncino chiaro tipo #a67c00 o #cfa45d */
}

/* Nascondi nav-links su mobile */
.nav-links {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

/* Hamburger attivo */
.hamburger.active i {
  color: #007bff; /* colore icona attiva */
}

/* Quando hamburger attivo, mostra nav */
.nav-links.active {
  display: flex;
  position: absolute;
  top: 60px; /* sotto navbar */
  right: 0;
  background: white;
  width: 200px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Media query desktop: nav sempre visibile e hamburger nascosto */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2rem;
    box-shadow: none;
    background: transparent;
    width: auto;
    padding: 0;
  }
  .hamburger {
    display: none;
  }
}
/* Titoli mesi (h3) dentro .prices-months sempre neri */
.prices-months h3 {
  color: black !important;
}

.main-hero {
  background-image: url('immagini/taranto.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem 1rem;
  position: relative;
}

/* Per migliorare leggibilità del testo sopra l'immagine */
.main-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* leggero overlay scuro */
  z-index: 1;
}

.main-hero > * {
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .main-hero {
    padding: 4rem;
  }
}
.description-section {
  max-width: 800px;       /* larghezza massima */
  margin: 2rem auto;       /* centratura orizzontale + spazio sopra/sotto */
  padding: 0 1rem;         /* padding laterale per mobile */
  text-align: justify;     /* facoltativo: giustifica il testo */
  font-size: 1.1rem;       /* migliora la leggibilità */
  line-height: 1.6;        /* aumenta l'interlinea */
}





