:root {
  --gold: #d4b36d;
  --dark: #1a1a1a;
  --light: #ffffff;
  --overlay: rgba(0, 0, 0, 0.2);
  --transition: all 0.5s ease;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
}
a,
button,
.navbar,
.nav-links a,
.hero-logo,
.gallery-item img,
.gallery-item .overlay,
.service-card,
.lightbox {
  transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { scroll-behavior: smooth; background: var(--light); }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overscroll-behavior: none;
}
body {
  font-family: var(--font-sans);
  color: var(--dark);
  line-height: 1.6;
}
/* === PAGE LOADER === */
#page-loader{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none; /* non blocca click quando sta sfumando */
}
#page-loader.fade-out{
  opacity: 0;
  pointer-events: none;
}

#page-loader .loader-content{
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Logo ridimensionato (responsive) */
.loader-logo{
  width: min(220px, 45vw);
  height: auto;
  display: block;
}

/* Rotella centrale */
.loader-spinner{
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #d4b36d;
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
@keyframes spin{ from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* Barra di caricamento */
.loader-bar{
  width: min(260px, 70vw);
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress{
  width: 0%;
  height: 100%;
  background: #d4b36d; /* se vuoi oro: #d4b36d */
  transition: width .25s ease;
}

body.loaded .hero {
  opacity: 1;
}
/* HERO */
.hero {
  position: relative;
  height: 100vh;
  background: url('assets/img/villa1.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.45));
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--light);
  max-width: 600px;
  padding: 0 20px;
}

.hero-logo {
  max-width: 400px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 2s forwards;
  transition: transform 0.3s ease;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1.8s 0.3s forwards;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-top: 20px;
  color: var(--light);
  opacity: 0;
  animation: fadeInUp 1.8s 0.5s forwards;
}

.scroll-down {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 1.8s 1s forwards;
}

.scroll-down:hover { color: #b99654; }

.arrow {
  font-size: 1.5rem;
  line-height: 1;
}

/* SECTION */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  background-color: var(--light);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 800px;
}

.section p {
  max-width: 700px;
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
[data-aos].aos-animate h2,
[data-aos].aos-animate p {
  opacity: 1;
  transform: translateY(0);
}

/* === MODERN GALLERY === */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* classi per effetti asimmetrici */
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* responsive fix */
@media (max-width: 768px) {
  .gallery-item.wide {
    grid-column: span 1;
  }
  .gallery-item.tall {
    grid-row: span 1;
  }
}


#villa-services h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-serif);
  color: var(--gold);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px; /* più compatto */
  max-width: 700px;
  margin-inline: auto;
}

.service-item {
  display: flex;
  align-items: center; /* centra verticalmente icona e testo */
  gap: 14px;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.in {
  opacity: 1;
  transform: translateX(0);
}

.service-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 4px rgba(212, 179, 109, 0.25));
  margin-top: 2px; /* correzione fine per centraggio ottico */
}

.service-item h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.3;
}

.service-item div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .service-list {
    gap: 12px;
  }

  .service-icon {
    width: 22px;
    height: 22px;
  }

  .service-item h3 {
    font-size: 1rem;
  }

  .service-item p {
    font-size: 0.85rem;
  }
}



/* CONTACT */
.contact.dark {
  background: var(--dark);
  color: var(--light);
}

.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--light);
  font-family: var(--font-sans);
}

.contact-form button {
  background: var(--gold);
  color: var(--light);
  padding: 14px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.contact-form button:hover {
  background: #b99654;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* ANIMAZIONI */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: transparent;              /* completamente invisibile sulla hero */
  pointer-events: auto;                 /* rimane cliccabile */
  z-index: 999;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85); /* sfondo soft solo dopo scroll */
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a:hover {
  color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
}

.navbar.scrolled .nav-toggle {
  color: var(--dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease forwards;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    color: var(--dark);
  }

  .nav-toggle {
    display: block;
  }
}
/* === PARALLAX IMAGE === */
.parallax-window {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* l'immagine copre tutto lo schermo */
  background: url('assets/img/villa2.webp') center center / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
  z-index: 0;
  opacity: 0; /* sarà visibile solo quando si scrolla nella sezione */
  transition: opacity 0.3s ease;
}

.parallax-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 20px;
}


@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll; /* evita bug iOS */
    background-position: center center;
    background-size: cover;
    height: 60vh;
  }
}
@media (min-resolution: 2dppx) {
  .parallax-section {
    image-rendering: -webkit-optimize-contrast;
    background-size: cover;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-logo { max-width: 90px; }
  .section { padding: 70px 15px; }
  .section h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .hero-logo {
    max-width: 160px;
  }
}
/* === HAMBURGER === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--light);
  transition: all 0.4s ease;
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
  }
}

/* === MOBILE MENU OVERLAY === */
/* === DESKTOP MENU === */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links li a {
  color: var(--dark);
}

.nav-links li a:hover {
  color: var(--gold);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Nasconde menu classico su mobile */
  }

  .nav-toggle {
    display: flex; /* Mostra hamburger */
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none; /* Nasconde hamburger su desktop */
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu-content ul li {
  margin: 20px 0;
}

.mobile-menu-content ul li a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-content ul li a:hover {
  color: var(--gold);
}

/* Animazione fade-in con ritardo per link */
.mobile-menu.open ul li {
  animation: menuFade 0.8s ease forwards;
}

.mobile-menu.open ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.open ul li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.open ul li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.open ul li:nth-child(4) { animation-delay: 0.4s; }

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === CLOSE MENU BUTTON === */
.close-menu {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.close-menu span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--light);
  transition: all 0.4s ease;
}

.close-menu span:nth-child(1) {
  transform: rotate(45deg);
}

.close-menu span:nth-child(2) {
  transform: rotate(-45deg);
}

.close-menu:hover span {
  background: var(--gold);
  transform: scale(1.1) rotate(45deg);
}

.close-menu:hover span:nth-child(2) {
  transform: scale(1.1) rotate(-45deg);
}

@media (max-width: 768px) {
  .close-menu {
    display: flex;
  }
}

@media (min-width: 769px) {
  .close-menu {
    display: none; /* visibile solo su mobile */
  }
}
@media (max-width: 768px) {
  .parallax-window {
    position: relative;
    height: 60vh;
    overflow: hidden;
  }

  /* L'immagine di sfondo che rimane fissa */
  .parallax-bg {
    position: fixed; /* ⬅️ questo è il trucco */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* copre lo schermo */
    background: url('assets/img/villa2.webp') center center / cover no-repeat;
    transform: translateY(0);
    will-change: transform;
    z-index: 0;
    opacity: 0; /* nascosta finché la sezione non è visibile */
    transition: opacity 0.3s ease, transform 0.1s linear;
  }

  /* Overlay sopra l’immagine per leggibilità */
  .parallax-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Contenuto della sezione */
  .parallax-content {
    position: relative;
    z-index: 2; /* sopra immagine e overlay */
    color: #fff;
    text-align: center;
    padding: 20px;
  }
}

/* Retina nitidezza */
@media (min-resolution: 2dppx) {
  .parallax-image {
    image-rendering: -webkit-optimize-contrast;
  }
}
.lang-switcher button,
.lang-switcher-mobile button {
  background: transparent;
  border: 1px solid var(--light);
  color: var(--light);
  font-size: 0.9rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.navbar.scrolled .lang-switcher button {
  border: 1px solid var(--dark);
  color: var(--dark);
}

.lang-switcher button:hover,
.lang-switcher-mobile button:hover {
  background: var(--gold);
  color: var(--light);
  border-color: var(--gold);
}

.lang-switcher button.active-lang,
.lang-switcher-mobile button.active-lang {
  background: var(--gold);
  color: var(--light);
  border-color: var(--gold);
}

.map-static {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  max-height: 500px;
  margin-inline: auto;
}

.map-static img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.map-static:hover img {
  transform: scale(1.1);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.overlay-content p {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1rem;
}

.btn-map {
  background: var(--gold);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn-map:hover {
  background: #b99654;
  transform: translateY(-2px);
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 60px;
  max-width: 800px;
  justify-content: center; /* ✅ centra l'intero blocco */
}

.features-list li {
  display: grid;
  grid-template-columns: 28px 1fr; /* ✅ icona + contenuto sempre allineati */
  align-items: flex-start;
  column-gap: 12px;
}

.features-list i {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.8;
  margin-top: 2px;
  justify-self: end; 
}

.features-list strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.2;
}

.features-list span {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-top: 2px;
  line-height: 1.3;
}

/* Mobile - 1 colonna */
@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .features-list li {
    grid-template-columns: 28px 1fr;
  }
}


flip-card {
  perspective: 1000px;
  position: relative;
  transition: all 0.4s ease;
  width: 100%;
}

/* Card interna */
.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 260px;
  transition: transform 0.8s ease, min-height 0.4s ease;
  transform-style: preserve-3d;
}

/* Stato espanso */
.flip-card.expanded .flip-card-inner {
  transform: rotateY(180deg);
  min-height: 460px; /* si espande in verticale */
}

/* Front & Back */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: height 0.3s ease;
}

/* Back */
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--dark);
  color: var(--light);
  overflow: hidden;
}

.flip-card-back img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.flip-card-front h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}

.flip-card-front p,
.flip-card-back p {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Pulsanti */
.btn-more,
.btn-less {
  margin-top: 15px;
  background: var(--gold);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-more:hover,
.btn-less:hover {
  background: #b99654;
}

/* Responsive */
@media (max-width: 600px) {
  .flip-card-inner {
    min-height: 240px;
  }
  .flip-card.expanded .flip-card-inner {
    min-height: 500px;
  }
}
/* === ESPERIENZE - Scroll Alternato === */
.esperienze-hero {
  background: url('assets/img/esperienze/hero-boat.webp') center/cover no-repeat;
}

.esperienze-section {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.esperienza-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

.esperienza-row.reverse {
  flex-direction: row-reverse;
}

.esperienza-img {
  flex: 1;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.esperienza-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.esperienza-row:hover .esperienza-img img {
  transform: scale(1);
}

.esperienza-text {
  flex: 1;
  padding: 20px;
}

.esperienza-text h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.esperienza-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

/* Responsivo */
@media (max-width: 900px) {
  .esperienza-row,
  .esperienza-row.reverse {
    flex-direction: column;
  }
  .esperienza-img img {
    height: 300px;
  }
  .esperienza-text {
    text-align: center;
  }
}

/* --- Layout più “wide” (foto un po’ più larghe) --- */
.esperienza-row { gap: 40px; }
.esperienza-gallery { flex: 0 1 58%; }
.esperienza-text    { flex: 0 1 42%; }

/* --- Mini carousel --- */
.esperienza-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.16);
  background: #000; /* evita flash bianco tra slide */
}

.gallery-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.esperienza-gallery img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Bottoni fancy “glass” */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  z-index: 2;
}
.gallery-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(0,0,0,0.45);
  border-color: rgba(212,179,109,0.9); /* var(--gold) */
}
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }

/* Mobile */
@media (max-width: 900px) {
  .esperienza-gallery, .esperienza-text { flex-basis: 100%; }
  .esperienza-gallery img { height: 320px; }
  .gallery-btn { width: 40px; height: 40px; font-size: 20px; }
}
/* === WELLNESS — Hero sereno, overlay più soft === */
.wellness-hero {
  background: url('assets/img/g1.webp') center/cover no-repeat;
}

.wellness-overlay {
  /* velatura più setosa, meno contrasto rispetto alla hero standard */
  background: linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.35));
  backdrop-filter: blur(2px);
}

/* === WELLNESS — Sezione pacchetti (card eleganti) === */
.wellness-section {
  /* spaziature leggermente più ampie per favorire “respiro” visuale */
  gap: 90px;
}

.wellness-cards {
  max-width: 1100px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0 20px;
}

.wellness-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.10);
  border: 1px solid rgba(212,179,109,0.18); /* accenno gold */
  transition: transform .35s ease, box-shadow .35s ease;
}

.wellness-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.wellness-card h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.wellness-card .subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.wellness-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-left: 0;
  text-align: left; 
}

.wellness-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.wellness-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.9;
}

/* Responsivo */
@media (max-width: 1024px) {
  .wellness-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wellness-cards { grid-template-columns: 1fr; }
}
/* === CHEF HERO === */
.chef-hero {
  background: url('assets/img/g2.webp') center/cover no-repeat;
}
.chef-hero .hero-overlay {
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45));
  backdrop-filter: blur(2px);
}

/* Stessa struttura wellness-cards */
.chef-section {
  gap: 90px;
}
/* === COOKIE CONSENT === */
.cc-backdrop[hidden] { display: none; }
.cc-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  z-index: 10000; display: grid; place-items: end center;
  padding: 16px;
}
@media (min-width: 768px) { .cc-backdrop { place-items: center; } }

.cc-card {
  width: min(680px, 92vw);
  background: #0f0f10; color: var(--light);
  border: 1px solid rgba(212,179,109,.25);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  padding: 20px 20px 14px;
  animation: fadeIn .35s ease both;
}

.cc-header {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  margin-bottom: 8px;
}
.cc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, rgba(212,179,109,.22), rgba(212,179,109,.06));
  border: 1px solid rgba(212,179,109,.35);
}
.cc-desc { color: #ddd; line-height: 1.5; }

.cc-accordion {
  margin: 10px 0; padding: 14px 14px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,179,109,.18);
  border-radius: 12px;
}
.cc-accordion summary {
  list-style: none; cursor: pointer; position: relative; padding-right: 22px;
  font-family: var(--font-serif);
  color: var(--gold);
}
.cc-accordion summary::-webkit-details-marker { display: none; }
.cc-accordion[open] summary::after,
.cc-accordion summary::after {
  content: "›"; position: absolute; right: 2px; top: 0; transform: rotate(90deg);
}
.cc-accordion[open] summary::after { transform: rotate(270deg); }
.cc-note { color: #cfcfcf; margin: 8px 0 12px; font-size: .95rem; }

.cc-switch { display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.cc-switch input { display: none; }
.cc-switch .slider {
  width: 48px; height: 28px; border-radius: 999px; position: relative;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  transition: var(--transition);
}
.cc-switch .slider::after {
  content: ""; position: absolute; top: 50%; left: 3px; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.cc-switch input:checked + .slider {
  background: rgba(212,179,109,.85); border-color: rgba(212,179,109,1);
}
.cc-switch input:checked + .slider::after { left: 23px; }
.cc-switch.disabled .slider { opacity: .6; cursor: not-allowed; }

.cc-actions {
  display: grid; gap: 10px; grid-template-columns: 1fr;
  margin-top: 12px;
}
@media (min-width: 560px) {
  .cc-actions { grid-template-columns: 1fr 1fr 1.2fr; }
}
.cc-small { margin-top: 6px; font-size: .9rem; color: #bbb; text-align: center; }
.cc-small a { color: var(--gold); text-decoration: none; }
.cc-small a:hover { text-decoration: underline; }

.cc-manage { margin-top: 8px; font-size: .9rem; }
.cc-manage a { color: var(--gold); text-decoration: none; }
.cc-manage a:hover { text-decoration: underline; }

/* Bottoni coerenti col tema */
.btn { background: var(--gold); color: #fff; padding: 12px 16px; border-radius: 999px; border: none; font-weight: 600; cursor: pointer; }
.btn:hover { background: #b99654; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn.outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
