/* ==========================================================
   Personalizzazioni Mamy Nails Beauty & Hair
   (estende style.css del template senza modificarlo)
   ========================================================== */

:root {
  --mn-whatsapp: #25d366;
  --mn-radius: 10px;
  --mn-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* --- Accessibilità --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--pureglow-black);
  color: var(--pureglow-white);
  padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Titoli: H1 nel page header con lo stile dell'H2 originale --- */
.page-header__inner h1 {
  color: var(--pureglow-white);
  font-size: 75px;
  line-height: 85px;
  font-weight: 500;
  margin-bottom: 15px;
}
.main-slider__title-h1 { margin: 0; }

.sidebar-info-title {
  display: block;
  font-size: 20px;
  line-height: 30px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: var(--pureglow-font-two);
}
.footer-contact-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--pureglow-white);
  font-family: var(--pureglow-font-two);
  margin-bottom: 4px;
}
.footer-hours li { display: flex; gap: 10px; align-items: baseline; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
}
.site-footer__legal a,
.cookie-preferences-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-footer__legal a:hover,
.cookie-preferences-link:hover { color: var(--pureglow-base); }

/* --- Form: privacy e esito --- */
.form-privacy label,
.contact-page__privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.form-privacy input[type="checkbox"],
.contact-page__privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--pureglow-base);
}
.contact-page__privacy { margin-bottom: 20px; }
.contact-page__privacy label.error,
.form-privacy label.error { color: #d32f2f; font-size: 13px; }
.result.success { color: #388e3c; margin-top: 12px; font-weight: 500; }
.result.error { color: #d32f2f; margin-top: 12px; font-weight: 500; }
.contact-page__input-box input[type="tel"],
.contact-page__input-box select {
  height: 60px;
  width: 100%;
  background-color: rgba(var(--pureglow-white-rgb), 0.10);
  border: none;
  padding: 0 20px;
  outline: none;
  font-size: 14px;
  color: rgba(var(--pureglow-white-rgb), .80);
  display: block;
  border-radius: var(--pureglow-bdr-radius);
}
.contact-page__input-box select option { color: var(--pureglow-black); }
.contact-page__privacy { color: rgba(var(--pureglow-white-rgb), .75); }
.contact-page .opening-table th, .contact-page .opening-table td { border-bottom-color: rgba(var(--pureglow-white-rgb), 0.1); color: rgba(var(--pureglow-white-rgb), .8); }
.contact-page .opening-table tr.is-today th, .contact-page .opening-table tr.is-today td { color: var(--pureglow-base); }

/* --- Pulsante WhatsApp flottante --- */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mn-whatsapp);
  color: #fff;
  border-radius: 50px;
  padding: 12px 14px;
  box-shadow: var(--mn-shadow);
  transition: transform 0.3s ease, padding 0.3s ease;
}
.whatsapp-float i { font-size: 28px; line-height: 1; }
.whatsapp-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  transition: max-width 0.4s ease;
}
.whatsapp-float:hover { color: #fff; transform: translateY(-3px); }
.whatsapp-float:hover .whatsapp-float__label { max-width: 220px; }

/* --- Banner cookie --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  max-width: 980px;
  margin: 0 auto;
  background: var(--pureglow-white);
  color: var(--pureglow-black);
  border-radius: var(--mn-radius);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
  font-family: var(--pureglow-font-two);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--pureglow-black);
}
.cookie-banner__text { margin: 0; color: var(--pureglow-gray); }
.cookie-banner__text a { color: var(--pureglow-base); text-decoration: underline; }
.cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--pureglow-gray);
  cursor: pointer;
}
.cookie-banner__prefs { display: grid; gap: 10px; margin-top: 14px; }
.cookie-pref {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pureglow-primary);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
.cookie-pref input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pureglow-base); flex: 0 0 auto; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-btn {
  border: 2px solid var(--pureglow-base);
  background: var(--pureglow-base);
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  flex: 1 1 auto;
  transition: all 0.3s ease;
}
.cookie-btn--outline { background: transparent; color: var(--pureglow-black); border-color: var(--pureglow-black); }
.cookie-btn:hover { background: var(--pureglow-black); border-color: var(--pureglow-black); color: #fff; }
.cookie-btn[hidden] { display: none; }

/* Placeholder contenuti esterni (Google Maps) prima del consenso */
.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 420px;
  height: 100%;
  background: var(--pureglow-primary);
  border-radius: var(--mn-radius);
  padding: 30px;
  text-align: center;
}
.consent-placeholder i { font-size: 40px; color: var(--pureglow-base); }
.consent-embed iframe,
.consent-embed .google-map__one { width: 100%; min-height: 420px; height: 100%; border: 0; border-radius: var(--mn-radius); }

/* --- Slider: slide senza immagine di sfondo --- */
.main-slider__bg--default { background: linear-gradient(120deg, #fef8f5 0%, #fbe3d6 100%); }

/* --- Gallery (centro e realizzazioni) --- */
.gallery-section { padding: 120px 0 90px; position: relative; }
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.gallery-filter a,
.gallery-filter button {
  display: inline-block;
  border: 1px solid rgba(var(--pureglow-black-rgb), 0.15);
  background: var(--pureglow-white);
  color: var(--pureglow-black);
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-filter .active a,
.gallery-filter .active button,
.gallery-filter a:hover,
.gallery-filter button:hover { background: var(--pureglow-base); border-color: var(--pureglow-base); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--mn-radius);
  aspect-ratio: 1 / 1;
  background: var(--pureglow-primary);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 400;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(var(--pureglow-black-rgb), 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pureglow-black);
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  padding: 4px 12px;
}
.gallery-empty { text-align: center; color: var(--pureglow-gray); padding: 40px 0; }

/* --- Servizi --- */
.services-category { padding-top: 20px; }
.services-category + .services-category { margin-top: 40px; }
.services-category__head { margin-bottom: 30px; }
.services-category__title { font-size: 34px; margin-bottom: 8px; }
.services-one__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--pureglow-base);
  font-weight: 600;
}
.service-details__meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 20px; }
.service-details__meta span {
  background: var(--pureglow-primary);
  border-radius: 30px;
  padding: 6px 16px;
  font-weight: 600;
}
.rich-text h2 { font-size: 32px; margin: 30px 0 14px; }
.rich-text h3 { font-size: 26px; margin: 26px 0 12px; }
.rich-text p, .rich-text li { color: var(--pureglow-gray); }
.rich-text ul, .rich-text ol { padding-left: 20px; margin-bottom: 20px; }
.rich-text a { color: var(--pureglow-base); text-decoration: underline; }

/* --- Staff: bio --- */
.team-two__bio { font-size: 15px; color: var(--pureglow-gray); margin-top: 8px; }

/* --- Pagine legali --- */
.legal-page { padding: 100px 0; }
.legal-page .rich-text { max-width: 900px; margin: 0 auto; }

/* --- Orari nella pagina contatti --- */
.opening-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.opening-table th, .opening-table td { padding: 8px 0; border-bottom: 1px solid rgba(var(--pureglow-black-rgb), 0.08); text-align: left; }
.opening-table td { text-align: right; color: var(--pureglow-gray); }
.opening-table tr.is-today th, .opening-table tr.is-today td { color: var(--pureglow-base); font-weight: 700; }

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { flex-direction: row; align-items: flex-end; }
  .cookie-banner__actions { flex: 0 0 auto; flex-direction: column; min-width: 190px; }
}
@media (max-width: 767px) {
  .page-header__inner h1 { font-size: 40px; line-height: 50px; }
  .whatsapp-float { left: 14px; bottom: 14px; }
  .gallery-section { padding: 80px 0 60px; }
}

/* --- Alias per tag cambiati per la gerarchia dei titoli --- */
.about-one__img-two-counter-count .mn-counter {
  font-size: 65px;
  font-weight: 600;
  line-height: 65px !important;
  font-family: var(--pureglow-font) !important;
  color: var(--pureglow-black);
  margin: 0;
}
.mn-counter-title { font-size: 24px; line-height: 34px; font-weight: 600; color: var(--pureglow-black); margin: 0; font-family: var(--pureglow-font-two); }
.team-one__name { font-size: 24px; line-height: 34px; font-weight: 400; margin-top: 8px; }
.team-one__name a { color: var(--pureglow-black); }
.team-one__name a:hover { color: var(--pureglow-base); }
.sliding-text-one__list p.sliding-text-one__title { margin: 0; }

/* --- Contatti --- */
.contact-info__single .h5-like {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--pureglow-black);
  font-family: var(--pureglow-font);
  font-style: normal;
  margin: 0;
}
.contact-info__single .h5-like a,
.contact-info__single .contact-info__line a { color: var(--pureglow-black); }
.contact-info__single .h5-like a:hover,
.contact-info__single .contact-info__line a:hover { color: var(--pureglow-base); }
.contact-info__single p.contact-info__line { margin: 2px 0 0; font-size: 15px; }

/* --- Call to action prenotazione (why-choose-one senza immagine) --- */
.why-choose-one.why-choose-one--cta { padding: 80px 0; }
.why-choose-one--cta .why-choose-one__left { margin-top: 0; }
.why-choose-one--cta .why-choose-one__point { margin-top: 30px; }
@media (min-width: 1200px) {
  .why-choose-one.why-choose-one--cta { padding: 120px 0; }
  .why-choose-one--cta .why-choose-one__point { margin-top: 0; }
}

/* --- Menu nella sidebar laterale --- */
.sidebar-menu { margin: 10px 0 35px; }
.sidebar-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-menu__list a {
  display: block;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  font-family: var(--pureglow-font-two);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.sidebar-menu__list a:hover,
.sidebar-menu__list .current > a { color: var(--pureglow-base); padding-left: 6px; }
.sidebar-menu__sub { margin: -4px 0 10px 14px; }
.sidebar-menu__sub a { padding: 5px 0; font-size: 14px; font-family: var(--pureglow-font); color: rgba(255, 255, 255, 0.6); }

/* --- Sfondo intestazione pagine senza immagine --- */
.page-header__bg--default { background: linear-gradient(120deg, #3a2a24 0%, #8a4b2a 55%, var(--pureglow-base) 130%); }
.page-header__bg--default::before { opacity: 0.35; }

/* --- Segnaposto quando manca una foto --- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--pureglow-bdr-radius);
  background: linear-gradient(135deg, var(--pureglow-primary) 0%, #fbe3d6 100%);
  color: var(--pureglow-base);
  font-size: 64px;
}
.img-placeholder--person { aspect-ratio: 4 / 5; }
.img-placeholder__initials { font-family: var(--pureglow-font-two); font-size: 72px; line-height: 1; opacity: 0.8; }

/* --- Correzioni UI --- */
/* Bottoni .thm-btn su <button>: elimina il bordo nero predefinito del browser */
.thm-btn { border: 0; }

/* Contatti: box info tutti alla stessa altezza */
.contact-info .row > [class*="col-"] { display: flex; }
.contact-info__single { width: 100%; }

/* Sliding text: icona dentro la pillola separatrice */
.sliding-text-one--three .sliding-text-one__list li span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--pureglow-white-rgb), 0.95);
  font-size: 18px;
}

/* Footer: dati societari (art. 2250 c.c.) */
.site-footer__company-data { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: rgba(var(--pureglow-white-rgb), .70); }
.site-footer__copyright { flex: 1 1 auto; min-width: 0; }
@media (min-width: 992px) {
  .site-footer__bottom-inner { gap: 40px; }
  .site-footer__legal { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
}
