/* --------------------------------------------------
   VARIABILI
-------------------------------------------------- */
:root {
  /* Font */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Lora", serif;
  --font-sans-bold: "Inter", system-ui, sans-serif;

  /* Colori */
  --color-primary: #10889D;
  --color-secondary: #005671;
  --color-tertiary: #E9B73E;
  --color-white: #ffffff;
  --color-bg: #9accd5;

  /* Tipografia */
  --color-h1: var(--color-white);
  --color-h2: var(--color-primary);
  --color-h3: var(--color-tertiary);
  --color-p: var(--color-secondary);

  --h3-transform: uppercase;

  /* Radius */
  --radius-base: 16px;

  /* Layout */
  --container-width: 1120px;
  --gutter: 1.5rem;

  /* Transizioni */
  --transition-fast: 0.25s ease-out;
  --transition-med: 0.4s ease-out;
}

/* --------------------------------------------------
   RESET
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-p);
  background-color: #f7fafb;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------
   ACCESSIBILITÀ
-------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --------------------------------------------------
   LAYOUT BASE
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 4rem 0;
scroll-margin-top: 120px; /* altezza del tuo menu */
}

.centered {
  text-align: center;
}

/* --------------------------------------------------
   TIPOGRAFIA
-------------------------------------------------- */
h1, h2, h3 {
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 4rem);
  color: var(--color-h1);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--color-h2);
}

h3 {
  font-family: var(--font-sans-bold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: var(--h3-transform);
  color: var(--color-h3);
}

p {
  margin: 0 0 1rem;
  color: var(--color-p);
}

/* --------------------------------------------------
   HEADER / NAV
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  height: 70px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-tertiary);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--color-tertiary);
}

.nav-menu a.is-active {
  color: var(--color-tertiary);
}

.nav-menu a.is-active::after {
  width: 100%;
}

/* Bottone "Scrivimi" nel menu */
.nav-menu li:last-child {
  display: flex;
  align-items: center;
}

.nav-menu .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  line-height: 1;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
}

.nav-menu .btn-cta i {
  color: var(--color-white);
}

.nav-menu .btn-cta::after {
  content: none !important;
}

.nav-menu .btn-cta:hover,
.nav-menu .btn-cta:focus-visible {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,86,113,0.20);
  text-decoration: none;
  color: var(--color-white);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}


/* CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-sans-bold);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,86,113,0.20);
}

.btn-cta-large {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  display: inline-block;
text-align: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero h2 {
  color: var(--color-white);
  margin-bottom: 0;
}

.hero p {
  color: var(--color-white);
  margin-bottom: 2rem;
}

/* Contenitore delle slide */
.hero-carousel {
  position: relative;
  min-height: 90vh;
}

/* Slide base */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

/* Slide attiva */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* BACKGROUND DELLE TRE SLIDE */
.hero-slide:nth-child(1) {
  background-image: url("../image/danzamovimentoterapia.jpg");
}

.hero-slide:nth-child(2) {
  background-image: url("../image/aromaterapia.jpg");
}

.hero-slide:nth-child(3) {
  background-image: url("../image/consulenze.jpg");
}

/* OVERLAY COLORATO */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  opacity: 0.45;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* FRECCE */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-nav:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.1);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-nav i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* --------------------------------------------------
   CIT e CHI SIAMO
-------------------------------------------------- */
.hero-about {
  padding: 3rem 0;
  position: relative;
}

.blob-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  height: 800px;
}

.blob { 
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='50 150 930 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%239accd5' d='M868 678.5q-84 178.5-271 197t-348.5-79Q87 699 147 529t168-268.5q108-98.5 249-58t264.5 169Q952 500 868 678.5Z'/%3E%3C/svg%3E");
}

.blob h2 {
  color: var(--color-white);
  text-align: center;
  padding-top: 120px;
}

.about-cards {
  margin-top: -25rem; /* sovrapposizione morbida */
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------
   DUE COLONNE
-------------------------------------------------- */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* Card */
.card-outline {
  border-radius: var(--radius-base);
  padding: 2rem;
  background-color: var(--color-white);
  box-shadow: 0 8px 18px rgba(0,86,113,0.20);
}

.card-outline a {
  color: var(--color-secondary);
  text-decoration:underline;
}

.card-outline a:hover {
  color: var(--color-tertiary);
  text-decoration:none;
}

.card-image figure {
  margin: 0;
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,86,113,0.20);
  max-height:550px;
}

.card-image img {
  transition: transform var(--transition-med);
}

.card-image img:hover {
  transform: scale(1.03);
}

/* --------------------------------------------------
   SERVIZI
-------------------------------------------------- */

/* Sezione servizi */
.servizi {
  padding: 0;
  position: relative;
}

#danzamovimentoterapia,
#aromaterapia,
#consulenze {
  height: 260vh; /* identico per tutti */
  position: relative;
}

/* Contenuto sticky */
.servizi-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Sfondo e layout interno */
.servizi-bg,
.servizi-bg-aroma,
.servizi-bg-consulenze {
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

/* Background specifici */
.servizi-bg {
  background-color: var(--color-secondary);
  background-image: url("../image/bg1.png");
}

.servizi-bg-aroma {
  background-color: var(--color-primary);
  background-image: url("../image/bg2.png");
}

.servizi-bg-consulenze {
  background-color: rgb(45, 166, 187);
  background-image: url("../image/bg3.png");
}

/* Testi */
.servizi-text h2 {
  color: var(--color-white);
}

.servizi-text p {
  color: #eaf7fa;
}

/* Card */
.servizi-card {
  position: relative;
  border-radius: var(--radius-base);
  background-color: var(--color-white);
  padding: 2rem;
  color: var(--color-secondary);
  box-shadow: 0 16px 40px rgba(0,86,113,0.20);
  overflow: visible;
}

/* --------------------------------------------------
   STACK IMMAGINI TIPO PEAR
-------------------------------------------------- */

.servizi-stack,
.servizi-stack-aroma,
.servizi-stack-consulenze {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 580px;
  pointer-events: none;
}

/* Immagini base */
.servizi-stack img,
.servizi-stack-aroma img,
.servizi-stack-consulenze img {
  position: absolute;
  width: 100%;
  border-radius: var(--radius-base);
  opacity: 0;
  transform: translateY(250px);
  top: 0;
  left: 0;
}

/* Rotazioni polaroid */
.servizi-stack img:nth-child(1),
.servizi-stack-aroma img:nth-child(1),
.servizi-stack-consulenze img:nth-child(1) {
  rotate: -4deg;
  z-index: 1;
}

.servizi-stack img:nth-child(2),
.servizi-stack-aroma img:nth-child(2),
.servizi-stack-consulenze img:nth-child(2) {
  rotate: 5deg;
  z-index: 2;
}

.servizi-stack img:nth-child(3),
.servizi-stack-aroma img:nth-child(3),
.servizi-stack-consulenze img:nth-child(3) {
  rotate: -1deg;
  z-index: 3;
}

/* --------------------------------------------------
   ESPERIENZE
-------------------------------------------------- */
.esperienze-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  margin-top: 2rem;
}

.esperienze-tap-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tap {
  text-align: left;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  padding: 0.6rem 1rem;
  background-color: var(--color-white);
  color: var(--color-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.tap.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(0,86,113,0.20);
  transform: translateX(4px);
}

.gallery {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery.is-active {
  display: grid;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-base);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------
   LIGHTBOX / SLIDESHOW PREMIUM
-------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,86,113,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999999999;
  padding: 1rem;
  isolation: isolate;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-base);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease; /* fade immagine */
}

.lightbox-img.is-visible {
  opacity: 1;
}

/* Bottoni */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  opacity: 0.7;
  transform: scale(1.1);
}


/* --------------------------------------------------
   COLLABORAZIONI
-------------------------------------------------- */
.collaborazioni {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

/* WRAPPER PER FRECCE */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px; /* SPAZIO PER LE FRECCE */
}

/* CAROUSEL */
.logo-carousel {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.logo-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.logo-carousel a {
  flex: 0 0 calc(25% - 40px); /* 4 loghi visibili */
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-carousel img {
  width: 100%;
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-carousel a:hover img,
.logo-carousel a:focus img,
.logo-carousel a:active img {
  filter: grayscale(0%);
  opacity: 1;
}

/* FRECCE (stile hero) */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-nav:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-nav i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}


/* --------------------------------------------------
   RECENSIONI
-------------------------------------------------- */
.recensioni {
  background-color: #f0f7f9;
}

.reviews-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

/* CARD BASE */
.review-card {
  width: 260px;
  padding: 2rem 1rem 1rem 1rem;
  border-radius: 18px;
  color: var(--color-white);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ROTAZIONI SFALSATE */
.tilt-1 { transform: rotate(-2deg); }
.tilt-2 { transform: rotate(1.5deg); }
.tilt-3 { transform: rotate(-1deg); }
.tilt-4 { transform: rotate(2deg); }

/* HOVER: sollevamento + micro tilt */
.review-card:hover {
  transform: translateY(-10px) rotate(0deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

/* COLORI */
.colorone   { background: #10889D; }
.colortwo { background: #005671; }
.colorthree { background: #E9B73E; }

/* STELLINE */
.text {
  color: var(--color-white);
  font-size: 0.75rem;
}

.stars i {
  margin-right: 2px;
  color: var(--color-white);
  font-size: 1.1rem;
}

/* --------------------------------------------------
   CONTATTI
-------------------------------------------------- */
.card-map {
  border-radius: var(--radius-base);
  overflow: hidden;
  border: 1px solid rgba(16,136,157,0.3);
}

.card-map iframe {
  width: 100%;
  height: 380px;
  filter: hue-rotate(170deg) saturate(1.4);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
}

.social-icons a:hover {
  background-color: var(--color-tertiary);
  color: var(--color-white);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer-bg {
  background-color: var(--color-primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
}

.footer-logo {
  height: 36px;
}

.footer-center .small {
  font-size: 0.75rem;
  color: var(--color-white);
}

.footer-center a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-center a:hover {
  color: var(--color-tertiary);
  text-decoration: none;
}

.footer-top {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
}

.footer-top:hover {
  border: 1px solid var(--color-tertiary);
  color: var(--color-tertiary);
}

/* --------------------------------------------------
   REVEAL ON SCROLL
-------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 900px) {
  .two-cols,
  .esperienze-layout {
    grid-template-columns: 1fr;
  }

  .servizi-bg,
  .footer-bg {
    clip-path: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,86,113,0.20);
    min-width: 220px;
    transform-origin: top right;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .hero-nav {
    display: none;
  }

  .hero-carousel {
    min-height: 80vh;
  }

  .card-outline,
  .servizi-card {
    padding: 1.5rem;
  }

  .blob {
    padding: 28px;
  }

  .blob h2 {
    padding-top: 60px;
    font-size: 20px;
  }

  .servizi-bg,
  .servizi-bg-aroma {
    background-image: none !important;
  }

.servizi-stack,
.servizi-stack-aroma,
.servizi-stack-consulenze {
  width: 370px;
  height: 530px;
}

.gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
  }

  .carousel-wrapper {
    padding: 0 20px; /* meno padding, più spazio utile */
  }

  .logo-carousel {
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }

  .logo-carousel a {
    flex: 0 0 100%;          /* un logo per volta */
    scroll-snap-align: center;
    justify-content: center; /* centra il logo dentro il blocco */
  }


  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-top {
    font-size: 1.4rem;
    padding: 10px;
  }

}