/* =========================
   Reset + base
========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1f1f1f;
  background: #faf7f5;
}

/* Sentinel invisibile */
.section-sentinel{
  height: 1px;
  width: 100%;
}

/* =========================
   TOPBAR (palette + glass pills)
========================= */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  background: rgba(245, 225, 210, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 90, 70, 0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.topbar__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 16px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.nav{
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav--left{ justify-content: flex-start; }
.nav--right{ justify-content: flex-end; }

.nav__pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);

  color: rgba(55, 38, 28, 0.92);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.nav__pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
  background: rgba(255, 255, 255, 0.24);
}

.nav__pill.is-active{
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255,255,255,0.90);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.65),
    0 18px 44px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

/* Logo */
.brand{
  justify-self: center;
  text-decoration: none;
  line-height: 0;
}
.brand__logo{
  height: 175px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.30));
}

/* Mobile: MANTIENI desktop layout */
@media (max-width: 820px){
  .topbar__inner{
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
  }

  .nav{ flex-wrap: nowrap; gap: 6px; }

  .nav__pill{
    padding: 8px 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .brand__logo{ height: 120px; }
}

@media (max-width: 420px){
  .nav__pill{
    padding: 7px 7px;
    font-size: 10.5px;
  }
  .brand__logo{ height: 110px; }
}

/* =========================
   HERO (sfondo SOLO qui)
========================= */
.hero{
  min-height: 100vh;
  display: grid;
  place-items: center;

  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.40), rgba(0,0,0,0.28)),
    url("../assets/sfondo.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding-top: var(--topbar-h);
}

.hero__wrapper{
  width: 100%;
  padding-top: 0;        
  padding-bottom: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

@media (max-width: 820px){
  .hero{
    padding-top: var(--topbar-h-mobile);
    min-height: 90vh;
    background-position: center 30%;
  }
}

@media (max-width: 420px){
  .hero{
    min-height: 85vh;
    background-position: center 20%;
  }
}

/* =========================
   Glass boxes (hero)
========================= */
.glass-box{
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border-radius: 24px;

  color: #ffffff;
  text-align: center;
}

.glass-box--main{
  width: min(860px, 92vw);
  padding: clamp(28px, 4vw, 40px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__title{
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__subtitle{
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  opacity: 0.95;
}

.service__text--mobile{ display: none; }

@media (max-width: 820px){
  .service__text--desktop{ display: none; }
  .service__text--mobile{ display: block; }
}

/* =========================
   SERVIZI (Home) – pulito, premium, 2 colonne anche su mobile
========================= */
.services{
  width: min(980px, 92vw);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Card servizi */
.glass-box--service{
  flex: 1 1 320px;
  padding: 26px;

  display: grid;
  gap: 12px;

  min-height: 0; /* niente box “vuoti” */
}

.service__title{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.service__text{
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
}

/* Bottone: NON spingerlo in fondo */
.glass-box--service .btn{
  margin-top: 6px;
  justify-self: center; /* stretto e centrato su desktop */
}

/* Mobile: 2 colonne affiancate */
@media (max-width: 820px){
  .services{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .glass-box--service{
    padding: 12px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .service__title{
    font-size: 16px;
    line-height: 1.1;
  }

  .service__text{
    font-size: 12.5px;
    line-height: 1.35;
  }

  .glass-box--service .btn{
    width: 100%;
    min-width: 0;
    justify-self: stretch; /* bottone pieno (touch migliore) */
    padding: 9px 10px;
    font-size: 10.8px;
    letter-spacing: 0.04em;
    border-radius: 12px;
  }
}

/* Schermi molto piccoli: 1 colonna per non “strozzare” */
@media (max-width: 380px){
  .services{
    grid-template-columns: 1fr;
  }
}


/* =========================
   CHI SIAMO (stile elegante)
========================= */
.about{
  background: #faf7f5;
  padding: 90px 0;
}

.about__container{
  width: min(1100px, 92vw);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about__title{
  margin: 0 0 18px;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #2c1f18;
}

.about__text p{
  margin: 0 0 14px;
  line-height: 1.7;
  color: rgba(40, 30, 24, 0.80);
  font-size: 17px;
}

.about__image img{
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

@media (max-width: 900px){
  .about{ padding: 70px 0; }
  .about__container{ grid-template-columns: 1fr; }
  .about__image img{ height: 320px; }
}

/* =========================
   CONTATTI (solo WhatsApp)
========================= */
.contacts{
  background: #f6f0ec;
  padding: 80px 0;
}

.contacts__container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.contacts__title{
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #2c1f18;
}

.contacts__subtitle{
  margin: 0 0 20px;
  color: rgba(40, 30, 24, 0.70);
  line-height: 1.6;
}

.contacts__wa-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wa-card{
  padding: 20px;
  border-radius: 20px;
  background: rgba(245, 225, 210, 0.65);
  border: 1px solid rgba(120, 90, 70, 0.16);
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}

.wa-card__title{
  margin: 0 0 8px;
  font-size: 18px;
  color: rgba(35, 24, 18, 0.92);
}

.wa-card__text{
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(40, 30, 24, 0.75);
}

.wa-card__btn{
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px){
  .contacts__wa-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Bottoni
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 18px;
  min-width: 170px;

  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}

.btn--primary{
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.btn--secondary{
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}
.btn--secondary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

/* =========================
   Pagine interne (Massaggi/Estetica)
========================= */
.topbar__inner--internal{
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.nav__pill--internal{
  padding: 12px 18px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
}

.brand__logo--internal{
  height: 120px;
  display: block;
}

.internal{
  padding-top: 190px;
  padding-bottom: 40px;
  background: #faf7f5;
}

.internal__container{
  width: min(980px, 92vw);
  margin: 0 auto;
}

.internal__title{
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  color: #2c1f18;
}

.internal__subtitle{
  margin: 0 0 18px;
  color: rgba(40, 30, 24, 0.75);
  line-height: 1.6;
}

.listino{
  padding: 18px;
}

.listino__title{
  margin: 0 0 6px;
  font-size: 20px;
  color: rgba(35, 24, 18, 0.92);
}

.listino__hint{
  margin: 0 0 14px;
  color: rgba(40, 30, 24, 0.70);
  line-height: 1.5;
}

.price-image{
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 45px rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.75);
  transition: transform .18s ease, box-shadow .18s ease;
}

.price-image:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
}

.price-image img{
  width: 100%;
  height: auto;
  display: block;
}

.listino__actions{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.listino__actions .btn{
  min-width: 210px;
}

/* Colore box listino: Estetica (più in linea col listino, soft) */
.page--estetica .listino{
  background: linear-gradient(
    180deg,
    rgba(235, 210, 200, 0.85),
    rgba(245, 230, 225, 0.85)
  );
  border: 1px solid rgba(180, 140, 120, 0.25);
}

@media (max-width: 820px){
  .brand__logo--internal{ height: 105px; }
  .internal{ padding-top: 175px; }
  .nav__pill--internal{ padding: 10px 14px; font-size: 12px; }
}

@media (max-width: 420px){
  .brand__logo--internal{ height: 95px; }
  .internal{ padding-top: 165px; }
  .listino{ padding: 16px; }
  .listino__actions .btn{ width: 100%; min-width: 0; }
}

/* =========================
   Footer
========================= */
.footer{
  text-align: center;
  padding: 18px 12px;
  background: #faf7f5;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
}

/* =========================
   Offset scroll per topbar fissa
   (evita che la sezione venga coperta dal logo)
========================= */

/* Mobile */
@media (max-width: 820px){
  #chi-siamo,
  #contatti{
    scroll-margin-top: 230px;
  }
}

@media (max-width: 420px){
  #chi-siamo,
  #contatti{
    scroll-margin-top: 210px;
  }
}

/* =========================
   Mobile topbar: menu in colonna ai lati del logo
========================= */
@media (max-width: 820px){

  /* Mantiene la struttura 3 colonne */
  .topbar__inner{
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
  }

  /* I menu diventano colonne verticali */
  .nav{
    flex-direction: column;
    gap: 6px;
  }

  .nav--left{
    align-items: flex-start;
  }

  .nav--right{
    align-items: flex-end;
  }

  /* Pulsanti più compatti */
  .nav__pill{
    padding: 7px 8px;
    font-size: 10.5px;
    line-height: 1;
  }

  /* Logo centrale e grande */
  .brand{
    justify-self: center;
  }

  .brand__logo{
    height: 110px;
  }
}

/* Schermi molto piccoli */
@media (max-width: 420px){
  .brand__logo{
    height: 100px;
  }

  .nav__pill{
    padding: 6px 7px;
    font-size: 10px;
  }
}

/* Contatti: 2 pulsanti (WhatsApp + Chiama) */
.wa-card__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wa-card__actions .wa-card__btn{
  width: 100%;
  min-width: 0;
  justify-content: center;
}

/* Mobile: bottoni uno sotto l'altro (più comodo da toccare) */
@media (max-width: 520px){
  .wa-card__actions{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Footer premium su due righe
========================= */
.footer{
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 24px 0;
}

.footer__inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.footer__line{
  margin: 0;
  font-size: 14px;
  color: rgba(40, 30, 24, 0.72);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer__line + .footer__line{
  margin-top: 4px;
}

/* Seconda riga leggermente più discreta */
.footer__line--secondary{
  font-size: 13.5px;
  color: rgba(40, 30, 24, 0.60);
}

/* Mobile */
@media (max-width: 720px){
  .footer__line{
    font-size: 13px;
  }
}

:root{
  --topbar-h: 190px;      /* desktop */
  --topbar-h-mobile: 150px; /* mobile */
}

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  z-index: 9999;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

/* Popup */
.popup {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
}

/* Titolo */
.popup h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #333;
}

/* Testo */
.popup p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.5;
}

/* Bottone in linea con sito (neutro elegante) */
.btn-instagram {
  display: inline-block;
  background: #c89b7b; /* colore caldo stile spa */
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-instagram:hover {
  background: #b07f61;
}

/* Pulsante chiusura */
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* ============================================================
   MODIFICHE ESCLUSIVE PER LA PAGINA ESTETICA
   Queste regole non toccheranno la pagina Massaggi
   ============================================================ */

/* Forza il contenitore a centrare tutto il testo e i bottoni */
.page--estetica .listino {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 60px 20px !important; /* Aumenta lo spazio visto che manca l'immagine */
}

/* Centra i bottoni (WhatsApp e Instagram) */
.page--estetica .listino__actions {
  justify-content: center !important;
  width: 100% !important;
  max-width: 480px !important; /* Impedisce ai bottoni di diventare troppo larghi */
  margin: 25px auto 0 !important;
}

/* Rendi il titolo più visibile essendo l'unico elemento testuale */
.page--estetica .listino__title {
  font-size: 28px !important;
  margin-bottom: 15px !important;
}

/* Nasconde eventuali spazi residui dell'immagine che abbiamo tolto dal file HTML */
.page--estetica .price-image {
  display: none !important;
}