:root {
  --primary-color: #0077b6; /* marrone chiaro caldo */
--secondary-color: #0077b6; /* un marrone un po' più scuro */
--accent-color: #0077b6; /* beige chiaro come accento */
  --bg-color: #0077b6;
  --text-color: #0077b6;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Poppins', sans-serif;
  --transition-speed: 0.3s;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0; padding: 0;
  background-color: var(--bg-color);
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.5rem auto 0;
  border-radius: 4px;
}

section {
  margin-bottom: 4rem;
}

.intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  color: #0077b6;
}

/* Grid for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding-bottom: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
  transition: color var(--transition-speed);
}

.card:hover i {
  color: var(--accent-color);
}

.card h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card p {
  color: #0077b6;
  font-size: 1rem;
  padding: 0 1rem;
}

/* Responsive iframe container for map */
.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* FOOTER */
footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
  margin-left: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b88b4a;
}

.back-home-container {
  text-align: center;
  margin-bottom: 3rem;
}

.btn-back-home {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(75,54,33,0.4);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-back-home:hover,
.btn-back-home:focus {
  background-color: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(109,76,50,0.6);
  outline: none;
}

/* 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: #0077b6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tema scuro */
body.dark-theme {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  color: #0077b6;
}

/* 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: #0077b6;
}

.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: #0077b6;
}

.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: #0077b6;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #0077b6;
}

.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: #0077b6;
}

/* Main hero */
.main-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 3rem 0;
  gap: 2rem;
}

.main-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: #0077b6;
  margin-bottom: 1rem;
}

.main-hero h1 span {
  color: #0077b6;
  font-weight: 700;
  text-shadow: 1px 1px 2px #0077b6;
}

.main-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background: #b5835a;
  color: white;
  font-weight: 700;
  padding: 0.9rem 2.4rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgb(181 131 90 / 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #a46f35;
  box-shadow: 0 8px 20px rgb(164 111 53 / 0.7);
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgb(101 67 33 / 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(181 131 90 / 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(181 131 90 / 0.15);
}

.feature-card i {
  color: #b5835a;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  user-select: none;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #654321;
}

body.dark-theme .feature-card h3 {
  color: #e4cfa1;
}

.feature-card p {
  font-size: 1rem;
  color: #5c4a29;
}

body.dark-theme .feature-card p {
  color: #c3b28f;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgb(181 131 90 / 0.45);
}

/* Gallery preview */
.gallery-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #654321;
  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(101 67 33 / 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(181 131 90 / 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(181, 131, 90, 0.3);
  color: #e4cfa1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  font-size: 1.4rem;
}

.social-links a {
  color: #654321;
  transition: color 0.3s ease;
}

body.dark-theme .social-links a {
  color: #e4cfa1;
}

.social-links a:hover,
.social-links a:focus {
  color: #b5835a;
  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: #654321;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #5c4a29;
}

body.dark-theme .section-title {
  color: #e4cfa1;
}
body.dark-theme .section-subtitle {
  color: #c3b28f;
}

.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(101, 67, 33, 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;
}

/* Dark mode per overlay */
body.dark-theme .gallery-item .overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
  color: #e4cfa1;
}
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: #0077b6;
  border: 1px solid #0077b6;
  border-radius: 0.5rem;
  padding: 0.5rem;
  list-style: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}

.language-menu li {
  padding: 0.3rem 0.6rem;
}

.language-menu li a {
  text-decoration: #0077b6;
  color: #0077b6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-menu li a:hover {
  background-color: #f0f0f0;
  border-radius: 0.3rem;
}

/* Stile di default del menu a tendina */
.language-menu {
  background-color: white;
  color: #0077b6;
  border: 1px solid #0077b6;
  padding: 10px;
  list-style: none;
  position: absolute;
  z-index: 1000;
}

/* Tema scuro */
body.dark-theme .language-menu {
  background-color: #222;
  color: #f0f0f0;
  border-color: #0077b6;
}

/* Cambia colore anche ai link nel menu */
body.dark-theme .language-menu a {
  color: #0077b6;
}

/* Aggiungi effetto al passaggio */
body.dark-theme .language-menu a:hover {
  background-color: #0077b6;
}

body.dark-theme #language-toggle {
  color: #0077b6; /* marroncino chiaro */
}

body.dark-theme #language-toggle i {
  color: #0077b6;
}

/* Hamburger base */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #654321;
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.dark-theme .hamburger span {
  background: #e4cfa1;
}

/* Hamburger animato quando attivo */
.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);
}

/* Menu mobile a tendina */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgb(181 131 90 / 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: #b5835a;
}

/* 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: #fff;
    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: #1e1e1e;
  }

  .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;
}

.nav-menu {
  display: none;
}
.nav-menu.active {
  display: block;
}





