:root {
  --bg-aqua: #87cfe0;
  --text-main: #222222;
  --accent-yellow: #f6b423;
  --nav-link: #111111;
  --nav-link-hover: #555555;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: #eae0c3;
}

/* CONTAINER GENERICO */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HERO (INDEX)
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(135, 207, 224, 0.95) 0%,
      rgba(135, 207, 224, 0.70) 22%,
      rgba(135, 207, 224, 0.35) 45%,
      rgba(255, 255, 255, 0) 70%,
      rgba(0, 0, 0, 0.10) 100%
  );
  pointer-events: none;
}

/* NAV BAR */

.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 110px;
  width: auto;
}

/* NAV LINKS */

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--nav-link);
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--nav-link-hover);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HAMBURGER MOBILE */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--nav-link);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HERO CONTENT (solo index) */

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 40px 16px 80px;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  margin-left: 100px;
}

/* linee "Riscopri" e "il tuo corpo" */

.hero-line {
  font-family: "Splash", cursive;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #000000;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
}

.hero-line2 {
  margin-left: 90px;
}

.hero-line.animate {
  animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-line2.animate {
  animation-delay: 0.15s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* =========================================================
   SEZIONE MASSOTERAPIA (INDEX)
   ========================================================= */

.section-massoterapia {
  margin-top: 0;
}

.massoterapia-top {
  background-color: #eae0c3;
  padding: 70px 0 0;
}

.massoterapia-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(4rem, 6vw, 5rem);
  margin: 0 0 0 80px;
  position: relative;
  z-index: 2;
}

.massoterapia-middle {
  background-color: var(--bg-aqua);
  margin-top: -22px;
  padding: 120px 0 100px;
}

.massoterapia-bottom {
  background-color: #eae0c3;
  padding: 150px 0 190px;
}

.massoterapia-bottom .container {
  display: flex;
  justify-content: center;
}

.section-text {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-left: 74px;
}

/* frase "Prenditi cura del tuo corpo" */
/* frase "Prenditi cura del tuo corpo" */
.section-quote {
  text-align: center;
  font-family: "Dancing Script", cursive;
  font-style: italic;
  color: black;
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  max-width: 1000px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

/* blocco testo + immagini + bottone */
.prenota-content {
  position: relative;
  text-align: center;
}

/* immagine sinistra */
.prenota-img-box {
  position: absolute;
  left: -500px;          /* regola posizione orizzontale */
  top: 50%;
  transform: translateY(-50%);
}

.prenota-img {
  width: 500px;          /* regola dimensioni */
  height: auto;
}

/* immagine in basso a destra */
.prenota-img-bottom-right {
  position: absolute;
  bottom: -120px;         /* quanto scende sotto il bottone */
  right: -250px;          /* distanza dal bordo destro */
}

.prenota-img2 {
  width: 170px;          /* dimensione immagine decorativa */
  height: auto;
}

/* bottone prenota */
.prenota-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 36px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  background-color: #c4e4f8;
  border: 3px solid var(--bg-aqua);
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s ease;
  text-align: center;

  outline: none;
  box-shadow: none;
}

.prenota-btn:hover {
  background-color: var(--bg-aqua);
  border-color: var(--accent-yellow);
  color: white;
  transform: translateY(-3px);
}

/* Elimina outline anche quando il bottone viene cliccato */
.prenota-btn:focus {
  outline: none;
  box-shadow: none;
}

/* =========================================================
   SEZIONE CONTATTI (COMUNE)
   ========================================================= */

.section-contatti {
  margin-top: 0;
}

.section-top-white {
  background-color: #ecddb0;
  height: 0px;
}

.contatti-body {
  background-color: var(--bg-aqua);
  padding: 60px 0 110px;
}

.contatti-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3.4rem, 5vw, 4rem);
  text-align: center;
  margin: 0;
}

.contacts-grid {
  margin-top: 110px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: flex-start;
}

.contact-item {
  text-align: center;
}

.icon-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-icon {
  object-fit: contain;
}

.icon-position {
  width: 40px;
  height: 40px;
}

.icon-instagram {
  width: 120px;
  height: 120px;
}

.icon-phone {
  width: 56px;
  height: 56px;
}

.icon-mail {
  width: 50px;
  height: 50px;
}

.contact-label {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* =========================================================
   ANIMAZIONI ALLO SCROLL
   ========================================================= */

.scroll-section {
  opacity: 0;
  transform: none;
  transition: opacity 0.9s ease;
}

.scroll-section.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* =========================================================
   RESPONSIVE GENERALE
   ========================================================= */

@media (max-width: 960px) {
  .logo {
    height: 110px;
  }

  .nav-links {
    gap: 24px;
  }
}

.hero-mobile-bg {
  display: none;
}

@media (max-width: 768px) {

  /* HERO GENERICO (index) */
  .hero {
    background-image: url("../images/bg-mob.png");
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* NAV MOBILE */
  .nav-bar {
    padding: 14px 20px 0;
  }

  .logo {
    height: 90px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 20px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* TESTO HERO MOBILE (solo index) */
  .hero-content {
    position: relative;
    padding: 40px 16px 80px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    margin-left: 0;
  }

  .hero-line {
    font-size: 3.2rem;
  }

  .hero-line2 {
    margin-left: 40px;
  }

  /* MASSOTERAPIA MOBILE */
  .massoterapia-title {
    margin-left: 0;
    text-align: center;
    font-size: 3.6rem;
  }

  .massoterapia-middle {
    margin-top: -30px;
    padding: 90px 0 70px;
  }

  .section-text {
    margin-left: 0;
    text-align: center;
    padding: 0 24px;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 90%;
    margin-inline: auto;
  }

  .massoterapia-bottom {
    padding: 60px 0 70px;
  }

  .section-quote {
    font-size: 1.8rem;
    padding: 0 16px;
    margin-bottom: 12px;
  }

  /* TESTO + BOTTONE sopra, FOTO sotto */
  .prenota-content {
    padding-top: 0;               /* niente spazio extra */
    display: flex;
    flex-direction: column;       /* colonna: testo, bottone, poi immagine */
    align-items: center;
    text-align: center;
  }

  .prenota-img-box {
    position: static;             /* non più assoluta */
    transform: none;
    margin: 16px auto 0;          /* foto centrata sotto */
  }

  .prenota-img {
    width: 300px;                  /* più piccola su mobile */
    height: auto;
  }

  /* CONTATTI MOBILE */
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .icon-wrapper {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 70px;
  }

  .hero-line {
    font-size: 2.7rem;
  }

  .hero-line2 {
    margin-left: 24px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .section-text {
    font-size: 0.98rem;
  }

  .section-quote {
    font-size: 1.6rem;
  }

  .icon-wrapper {
    height: 64px;
  }
}

/* iPad / tablet in verticale */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

  /* hero grande usa lo sfondo mobile */
  .hero {
    background-image: url("../images/bg-mob.png");
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
  }

  .hero-content {
    justify-content: center;
    padding: 60px 24px 80px;
  }

  .hero-title {
    margin-left: 40px;
  }

  .hero-line {
    font-size: 4.2rem;
  }

  .hero-line2 {
    margin-left: 60px;
  }

}

/* =========================================
   CONTATTI – MOBILE & SMALL TABLET
   (HOME + CHI SONO)
   ========================================= */

@media (max-width: 768px) {

  .contatti-body {
    padding: 40px 0 70px;
  }

  .contacts-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    justify-items: center;
    align-items: flex-start;
  }

  .contact-item {
    text-align: center;
  }

  .icon-wrapper {
    height: 52px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-icon {
    object-fit: contain;
  }

  .icon-position {
    width: 28px;
    height: 28px;
  }

  .icon-instagram {
    width: 70px;
    height: 70px;
  }

  .icon-phone {
    width: 36px;
    height: 36px;
  }

  .icon-mail {
    width: 34px;
    height: 34px;
  }

  .contact-label {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}