/* =====================================================================
   Il Ninfeo — Centro Estetico
   Ricostruzione locale del sito frahobby10.wixsite.com/il-ninfeo
   Layout desktop: griglia centrata a 980px (come il sito Wix originale)
   Layout mobile (<= 750px): versione impilata come il layout mobile Wix
   ===================================================================== */

:root {
  --burgundy: #7B2F47;
  --burgundy-97: rgba(123, 47, 71, 0.97);
  --blush: #FDF4F4;
  --tag-bg: #FFF7F7;
  --badge: #E6A6A1;
  --black: #000;
  --white: #fff;
  --container: 980px;

  /* Font: Questrial e Syne sono gli stessi del sito originale (Google Fonts).
     Avenir / Lulo Clean / Helvetica sono font Wix con licenza: sostituiti
     con equivalenti liberi visivamente molto simili. */
  --f-body: 'Questrial', sans-serif;
  --f-title: 'Syne', sans-serif;
  --f-avenir: 'Nunito Sans', 'Avenir Next', 'Avenir', sans-serif;
  --f-lulo: 'Montserrat', 'Lulo Clean', sans-serif;
  --f-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 16px;

  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; font-weight: 400; }

button { font: inherit; cursor: pointer; }

.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--white);
  padding: 10px 18px;
  z-index: 10000;
  border: 1px solid var(--burgundy);
}
.skip-link:focus { top: 10px; }

/* ---------------------------------------------------------------------
   Pulsanti
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--burgundy);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.btn--solid { background: var(--burgundy); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--burgundy); }
.btn--outline { background: var(--white); color: var(--burgundy); font-weight: 700; }
.btn--outline:hover { background: var(--burgundy); color: var(--white); }
.btn--plain { border: 0; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: relative;
  background: var(--blush);
  height: 322px;
  z-index: 20;
}
.site-header .container { height: 100%; }

.logo {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 463px;
  height: 222px;
  transform: translateX(-50%);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.main-nav {
  position: absolute;
  top: 261px;
  left: 0;
  right: 0;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* larghezze delle voci identiche al menu Wix */
.main-nav li:nth-child(1) { width: 115px; }
.main-nav li:nth-child(2) { width: 154px; }
.main-nav li:nth-child(3) { width: 141px; }
.main-nav li:nth-child(4) { width: 128px; }
.main-nav a {
  display: block;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--black);
  transition: color .4s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--burgundy); }

.menu-toggle { display: none; }

/* Menu mobile a schermo intero */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 48px 0 0;
}
.mobile-menu a {
  display: block;
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 22px;
  color: var(--black);
}
.mobile-menu a[aria-current="page"] { color: var(--burgundy); }

/* ---------------------------------------------------------------------
   Barra social fissa (desktop)
   --------------------------------------------------------------------- */
.social-bar {
  position: fixed;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 114px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.social-bar a, .social-bar img { width: 26px; height: 26px; }
.social-bar img { object-fit: cover; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--blush);
  height: 94px;
}
.site-footer .container { height: 100%; }
/* linea nera a tutta larghezza, visibile su desktop e mobile */
.footer-line {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--black);
}
.copyright {
  position: absolute;
  left: 0;
  top: 37px;
  font-size: 14px;
  line-height: 19.6px;
  letter-spacing: .05em;
}
.payments {
  position: absolute;
  right: 0;
  top: 37px;
  width: 310px;
  height: 44px;
  background: var(--white);
  border: 5px solid var(--white);
  box-shadow: 0 1px 4px rgba(123, 47, 71, .4);
}
/* immagine ritagliata sulle icone: si vede sempre intera, senza tagli */
.payments img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------------------------------------------------------------
   Sezioni comuni
   --------------------------------------------------------------------- */
.section { position: relative; }
.bg-blush { background: var(--blush); }
.bg-burgundy { background: var(--burgundy); color: var(--white); }

.title-xl { font-family: var(--f-title); font-size: 56px; line-height: normal; }
.title-l  { font-family: var(--f-title); font-size: 50px; line-height: 70px; }
.title-m  { font-family: var(--f-title); font-size: 38px; line-height: 53.2px; }

/* Bordo "carta strappata" */
.torn {
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background: url("../svg/torn-edge.svg") repeat-x 0 100% / 1016px 100%;
  z-index: 2;
  pointer-events: none;
}
.torn--top { top: 0; transform: scaleY(-1); }
.torn--bottom { bottom: 0; }

/* Banner pagina interna (Chi siamo / Contatti) */
.page-banner { height: 269px; text-align: center; }
.page-banner .icon {
  position: absolute;
  top: 71px;
  left: 50%;
  width: 80px;
  transform: translateX(-50%);
  color: var(--white);
}
.page-banner .icon svg { width: 100%; height: auto; display: block; }
.page-banner h1 {
  position: absolute;
  top: 129px;
  left: 0;
  right: 0;
  color: var(--white);
}
.page-banner .rule {
  position: absolute;
  top: 212px;
  left: 50%;
  width: 284px;
  transform: translateX(-50%);
  border-top: 3px solid var(--white);
}

/* =====================================================================
   HOME
   ===================================================================== */
.home-hero {
  height: 699px;
  background: var(--burgundy);
  overflow: hidden;
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: .7;
}
.welcome-box {
  position: absolute;
  top: 128px;
  left: 50%;
  width: 600px;
  height: 443px;
  transform: translateX(-50%);
  background: var(--white);
  text-align: center;
  z-index: 3;
}
.welcome-box h1 { position: absolute; top: 76px; left: 0; right: 0; }
.welcome-box p {
  position: absolute;
  top: 160px;
  left: 50%;
  width: 382px;
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 28.8px;
}
.welcome-box .btn {
  position: absolute;
  top: 355px;
  left: 50%;
  width: 142px;
  height: 40px;
  transform: translateX(-50%);
  font-family: var(--f-avenir);
  font-weight: 300;
  font-size: 14px;
}

/* Promo + slideshow */
.promo { height: 400px; }
.promo__stage {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 368px;
  overflow: hidden;
}
.slideshow {
  position: absolute;
  inset: 0;
  background: rgb(47, 46, 46);
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow__slide.is-active { opacity: 1; }
/* foto del banner solo decorative: niente trascinamento né menu "apri immagine" su smartphone */
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
/* Frecce del banner: stesso stile su tutti i dispositivi (cerchio bordeaux, freccia bianca) */
.slideshow__arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(123, 47, 71, .6) no-repeat center / 20px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  transition: background-color .2s ease;
  z-index: 4;
}
.slideshow__arrow:hover, .slideshow__arrow:active { background-color: rgba(123, 47, 71, .9); }
.slideshow__arrow:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.slideshow__arrow--prev {
  left: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.slideshow__arrow--next {
  right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.promo__overlay {
  position: absolute;
  inset: 0;
  max-width: var(--container);
  margin: 0 auto;
  z-index: 3;
  pointer-events: none;
  color: var(--white);
}
.promo__overlay > * { position: absolute; }
.promo__overlay a { pointer-events: auto; }
.promo__shape { left: -221px; top: 0; width: 821px; height: 368px; color: var(--burgundy); }
.promo__shape svg { width: 100%; height: 100%; display: block; }
.promo__title {
  left: 39px;
  top: 23px;
  font-family: var(--f-title);
  font-size: 50px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.promo__text {
  white-space: pre-line;
  left: 39px;
  top: 84px;
  width: 366px;
  font-size: 16px;
  line-height: 22.4px;
}
.promo__old {
  left: 47px;
  top: 207px;
  font-family: var(--f-helvetica);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .01em;
}
.promo__strike {
  left: 38px;
  top: 218px;
  width: 101px;
  border-top: 2px solid var(--white);
  transform: rotate(-11deg);
}
.promo__new {
  left: 90px;
  top: 232px;
  font-family: var(--f-helvetica);
  font-weight: 700;
  font-size: 50px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.promo__badge { left: 331px; top: 175px; width: 165px; height: 165px; color: var(--badge); }
.promo__badge svg { width: 100%; height: 100%; display: block; }
.promo__pct {
  left: 331px;
  top: 215px;
  width: 165px;
  text-align: center;
  font-family: var(--f-helvetica);
  font-weight: 700;
  font-size: 50px;
  letter-spacing: .01em;
}
.promo__off {
  left: 331px;
  top: 269px;
  width: 165px;
  text-align: center;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
}
.promo__cta {
  left: 39px;
  top: 302px;
  width: 142px;
  height: 40px;
  font-size: 16px;
}

/* Servizi */
.services { height: 841px; text-align: center; }
.services__icon {
  position: absolute;
  top: 63px;
  left: 50%;
  width: 80px;
  height: 67px;
  transform: translateX(-50%);
  color: var(--burgundy);
}
.services__icon svg { width: 100%; height: 100%; display: block; }
.services h2 { position: absolute; top: 130px; left: 0; right: 0; }
.tiles {
  position: absolute;
  top: 292px;
  left: 0;
  right: 0;
  display: flex;
  height: 360px;
}
.tile {
  position: relative;
  flex: 243 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tile:first-child { flex-grow: 251; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
/* su Wix l'etichetta inizia esattamente a metà riquadro (non è centrata) */
.tile span {
  position: absolute;
  top: 176px;
  left: 0;
  right: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 28.8px;
}
.tile--light-1 { background: #F0F0F0; color: var(--black); }
.tile--light-2 { background: #FAFAFA; color: #404040; }
.tile--dark { background: var(--burgundy); color: var(--white); }
.tile--light-2 span, .tile--dark:last-child span { letter-spacing: .05em; }
.services .btn {
  position: absolute;
  top: 716px;
  left: 50%;
  width: 161px;
  height: 44px;
  transform: translateX(-50%);
  font-size: 16px;
}

/* Partners */
.partners { height: 335px; }
.partners h2 { position: absolute; left: 6px; top: 132px; }
.partners__logos {
  position: absolute;
  top: 97px;
  left: 370px;
  display: flex;
  gap: 16px;
}
.partners__logos img { width: 129px; height: 129px; object-fit: cover; }
.partners__logos img:first-child { margin-right: 2px; }

/* =====================================================================
   TRATTAMENTI
   ===================================================================== */
.tr-hero { height: 509px; }
.tr-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 446px;
  object-fit: cover;
  object-position: 50% 0;
}
.tr-hero__box {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  height: 317px;
  background: var(--burgundy);
  color: var(--white);
  text-align: center;
  z-index: 2;
}
/* nell'originale titolo e testo sono spostati di 13px a destra del centro */
.tr-hero__box h1 { position: absolute; top: 80px; left: 26px; right: 0; }
.tr-hero__box p {
  position: absolute;
  top: 187px;
  left: 50%;
  width: 700px;
  transform: translateX(calc(-50% + 13px));
  font-size: 16px;
}

.tr-list { padding: 1px 0 10px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 5.5px;
  margin: 0;
  padding: 0;
  border: 0;
}
.tag { position: relative; }
.tag input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tag span {
  display: block;
  height: 33px;
  padding: 0;
  text-align: center;
  line-height: 31px;
  border: 1px solid var(--burgundy);
  border-radius: 6px;
  background: var(--tag-bg);
  box-shadow: 0 1px 10px 1px rgba(64, 64, 64, .1);
  font-family: var(--f-lulo);
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* Stesso margine interno per tutte le etichette, qualunque sia la categoria */
.tag span { min-width: 60px; padding: 0 16px; }
.tag input:checked + span {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--black);
}
.tag input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* Ricerca a sinistra e categorie a destra, sulla stessa riga (stile delle etichette) */
.tr-toolbar { display: flex; align-items: center; gap: 18px; }
.tr-toolbar .tags { flex: 1; justify-content: flex-end; }
.search { position: relative; flex: 0 0 300px; }
.search input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--burgundy);
  border-radius: 6px;
  background: var(--tag-bg);
  box-shadow: 0 1px 10px 1px rgba(64, 64, 64, .1);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .2s ease;
}
.search input::placeholder { color: #9a7c85; opacity: 1; }
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(123, 47, 71, .22); }
.search__lens {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--burgundy);
  pointer-events: none;
}
.search__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(123, 47, 71, .08);
  color: var(--burgundy);
  cursor: pointer;
}
.search__clear:hover { background: rgba(123, 47, 71, .16); }
.search__clear:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 1px; }
.search__clear[hidden] { display: none; }
.search__clear svg { display: block; width: 100%; height: 100%; }
/* numero di risultati della ricerca */
.results { margin: 20px 0 0; text-align: center; font-size: 14px; color: #6d6266; }
.results[hidden] { display: none; }
.results strong { color: var(--burgundy); font-weight: 400; }
.results + .cards { margin-top: 18px; }
.results .results__all {
  padding: 0;
  border: 0;
  background: none;
  color: var(--burgundy);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
/* nessun risultato */
.cards__empty { grid-column: 1 / -1; padding: 50px 20px 70px; text-align: center; font-size: 17px; line-height: 1.6; }
.cards__empty[hidden] { display: none; }
.cards__empty .btn {
  display: inline-flex;
  margin-top: 18px;
  height: 40px;
  padding: 0 22px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
}
/* schermi medi e piccoli: la ricerca va sopra le categorie, a tutta larghezza */
@media (max-width: 900px) {
  .tr-toolbar { display: block; }
  .search { width: 100%; margin-bottom: 14px; }
  .tr-toolbar .tags { justify-content: center; }
}
@media (max-width: 750px) {
  .search input { height: 44px; font-size: 16px; } /* 16px: su iPhone evita lo zoom automatico */
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 317px);
  justify-content: space-between;
  row-gap: 14px;
  margin: 37px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  height: 250px;
  background: var(--blush);
  box-shadow: 0 1px 4px rgba(123, 47, 71, .5);
}
.card[hidden] { display: none; }
/* contenitore dell'immagine: taglia lo zoom senza tagliare la targhetta */
.card__media { position: absolute; inset: 0; overflow: hidden; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Targhetta categoria: larga almeno come l'originale (95px) e si allunga
   se il testo è più lungo; la tacca a sinistra ha il suo spazio */
.card__ribbon {
  position: absolute;
  top: 8px;
  right: -3px;
  min-width: 95px;
  height: 28px;
  padding: 0 9px 0 15px;
  color: var(--white);
  z-index: 1;
}
/* come su Wix la forma è ruotata di 180°: la tacca sta a sinistra */
.card__ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(180deg); }
.card__ribbon span {
  position: relative;
  display: block;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  font-family: var(--f-title);
  font-size: 10px;
  color: var(--black);
}
.card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: var(--white);
  padding: 10px 17px;
}
.card__bar h2 {
  font-size: 20px;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__more {
  position: absolute;
  inset: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--burgundy-97);
  color: var(--white);
  font-family: var(--f-helvetica);
  font-weight: 300;
  font-size: 17px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.card__more svg { width: 14px; height: 14px; }
.card:hover .card__more,
.card__more:focus-visible { opacity: 1; }

/* Lightbox trattamento */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 244, 244, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  z-index: 3;
}
.modal__close svg { width: 100%; height: 100%; display: block; }

/* Su computer e tablet la finestra ha altezza fissa (629px): titolo, testo e pulsante sono
   centrati in verticale, i testi lunghi scorrono. La foto riempie sempre tutta l'altezza. */
.tr-modal__box {
  position: relative;
  display: flex;
  width: 967px;
  max-width: calc(100% - 30px);
  height: min(629px, calc(100% - 30px));
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(123, 47, 71, .18);
}
/* X in un cerchio semitrasparente: stesso aspetto su computer, tablet e telefono */
.tr-modal__box .modal__close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: background-color .2s ease;
}
.tr-modal__box .modal__close:hover { background: rgba(255, 255, 255, .9); }
.tr-modal__media {
  position: relative;
  flex: 0 0 531px;
}
/* foto a filo della scheda, posizionata in assoluto: così non decide lei l'altezza della finestra */
.tr-modal__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.tr-modal__media.is-empty { background: var(--blush); }
.tr-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 370px;
  margin: 48px 0 48px 23px;
  font-family: Arial, sans-serif;
  min-height: 0;
}
.tr-modal__content h2 {
  margin: 0 0 20px;
  color: var(--burgundy);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}
.tr-modal__desc-wrap { position: relative; display: flex; flex-direction: column; width: 100%; flex: 0 1 auto; min-height: 0; }
.tr-modal__desc {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  padding-right: 12px;
}
.tr-modal__desc p { margin: 0 0 1em; }
.tr-modal__desc::-webkit-scrollbar { width: 6px; }
.tr-modal__desc::-webkit-scrollbar-thumb { background: var(--burgundy); border-radius: 10px; }
.tr-modal__desc::-webkit-scrollbar-track { background: #F9DAD7; border-radius: 10px; }
.tr-modal__desc { scrollbar-width: thin; scrollbar-color: var(--burgundy) #F9DAD7; }
.tr-modal__fade {
  position: absolute;
  left: 0;
  right: 10px;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  transition: opacity .2s ease;
}
.tr-modal__fade.is-hidden { opacity: 0; }
.tr-modal__book {
  flex: none;
  margin: 22px 0 0;
  padding: 12px 28px;
  background: var(--burgundy);
  color: var(--white);
  border: 1px solid var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 14px;
  white-space: nowrap;
  transition: all .25s ease;
}
.tr-modal__book:hover { background: var(--white); color: var(--burgundy); }


/* =====================================================================
   CHI SIAMO
   ===================================================================== */
.about { height: 601px; }
.about .container { height: 100%; display: flex; }
.about__img { width: 490px; height: 601px; object-fit: cover; flex: 0 0 auto; }
.about blockquote {
  margin: 94px 0 0 58px;
  width: 370px;
  font-size: 22px;
  line-height: 25.8px;
  letter-spacing: .03em;
}

.team { height: 928px; text-align: center; }
.team h2 { position: absolute; top: 74px; left: 0; right: 0; }
.team__rule {
  position: absolute;
  top: 154px;
  left: 50%;
  width: 30px;
  transform: translateX(-50%);
  border-top: 3px solid var(--white);
}
.team__list {
  position: absolute;
  top: 201px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--black);
}
.member { width: 403px; height: 688px; background: var(--white); }
.member img { width: 403px; height: 334px; object-fit: cover; }
/* punto della foto da tenere visibile quando il riquadro la ritaglia (impostato per ogni foto in chi-siamo.html) */
.member__body { padding: 40px 34px 0 31px; }
.member__role { font-size: 16px; line-height: 22.4px; }
.member__name { font-family: var(--f-title); font-size: 20px; line-height: 28px; margin-top: 7px; }
.member__bio { margin-top: 27px; font-size: 16px; line-height: 24px; }
.member__bio p + p { margin-top: 0; }


.structure-title { height: 169px; text-align: center; }
.structure-title h2 { position: absolute; top: 63px; left: 0; right: 0; }

.structure { height: 565px; }
.slider {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 480px;
}
/* Galleria a tutta larghezza: 3 immagini per schermata (2 su tablet, 1 su smartphone)
   che occupano sempre tutto lo spazio disponibile */
.slider__track {
  display: flex;
  gap: 10px;
  height: 100%;
  padding: 5px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item {
  flex: 0 0 calc((100% - 20px) / 3);
  scroll-snap-align: start;
  height: 470px;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.slider__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.slider__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slider__nav svg { width: 16px; height: 16px; }
.slider__nav--prev { left: 23px; }
.slider__nav--prev svg { transform: scaleX(-1); }
.slider__nav--next { right: 23px; }
.slider__nav[hidden] { display: none; }

/* Visualizzatore a schermo intero della galleria */
.viewer { background: var(--white); }
.viewer .modal__close { top: 39px; right: 39px; width: 20px; height: 20px; }
.viewer__img {
  /* l'immagine occupa tutto lo spazio disponibile (frecce e pulsanti esclusi) */
  width: calc(100vw - 140px);
  height: calc(100vh - 110px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.viewer__nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 0;
  background: none;
  color: var(--black);
  padding: 12px;
}
.viewer__nav svg { width: 100%; height: 100%; display: block; }
.viewer__nav--prev { left: 5px; }
.viewer__nav--prev svg { transform: scaleX(-1); }
.viewer__nav--next { right: 5px; }
.viewer__share {
  position: absolute;
  top: 26px;
  left: 35px;
  width: 38px;
  height: 44px;
  border: 0;
  background: none;
  padding: 9px;
  color: var(--black);
}
.viewer__share svg { width: 100%; height: 100%; display: block; }
.viewer__count {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
}

/* =====================================================================
   CONTATTI
   ===================================================================== */
.contact { height: 502px; }
.contact .container { height: 100%; }
.contact-info { position: absolute; inset: 0 auto 0 0; width: 480px; }
.contact-info .ci-icon { position: absolute; color: var(--burgundy); }
.contact-info .ci-icon svg { width: 100%; height: 100%; display: block; }
.ci-icon--pin   { left: 23px; top: 93px;  width: 21px; height: 29px; }
.ci-icon--phone { left: 21px; top: 190px; width: 25px; height: 25px; }
.ci-icon--mail  { left: 21px; top: 271px; width: 25px; height: 17px; }
.ci-icon--share { left: 23px; top: 346px; width: 24px; height: 25px; }
.ci-text {
  position: absolute;
  left: 87px;
  font-size: 16px;
  line-height: 28.8px;
}
.ci-text--address { top: 90px; }
.ci-text--phone { top: 187px; }
.ci-text--mail { top: 264px; }
.ci-text--mail a:hover { text-decoration: underline; }
.ci-text--mail { overflow-wrap: anywhere; }
.ci-social { position: absolute; left: 85px; top: 348px; display: flex; gap: 7px; }
.ci-social img { width: 24px; height: 24px; object-fit: cover; }

.contact-form {
  position: absolute;
  left: 501px;
  top: 62px;
  width: 458px;
  height: 377px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 202px 202px;
  column-gap: 18px;
  align-content: start;
  font-family: var(--f-avenir);
  font-weight: 300;
}
.field { display: flex; flex-direction: column; margin-bottom: 15px; }
.field--full { grid-column: 1 / -1; }
.field--full + .field--full { margin-top: 4px; }
.field label { font-size: 14px; line-height: 14px; margin-bottom: 8px; padding-left: 2px; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  padding: 3px 10px;
  color: var(--black);
  outline: none;
}
.field input { height: 37px; }
.field textarea { height: 86px; resize: none; padding-top: 8px; }
.field input:focus, .field textarea:focus { border-color: var(--burgundy); border-width: 2px; }
.field input.is-invalid { border-color: #DF3131; border-width: 2px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -6px;
}
.form-success {
  margin-top: 1px;
  font-size: 14px;
  line-height: 19.6px;
  visibility: hidden;
}
.form-success.is-visible { visibility: visible; }
.form-success.is-error { color: #DF3131; }
/* campo trappola per lo spam: fuori dallo schermo, invisibile ai visitatori */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn {
  width: 117px;
  height: 36px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
}

.hours { height: 281px; }
.hours h2 { position: absolute; left: 20px; top: 74px; line-height: normal; }
.hours dl {
  position: absolute;
  left: 497px;
  top: 83px;
  margin: 0;
  display: grid;
  grid-template-columns: 195px auto;
  row-gap: 0;
  font-family: var(--f-avenir);
  font-weight: 300;
  font-size: 16px;
  line-height: 28.8px;
}
.hours dl > div { display: contents; }
.hours dt, .hours dd { margin: 0; }
/* distanze tra le righe come nell'originale (52px e 45px) */
.hours dl > div:nth-child(2) dt,
.hours dl > div:nth-child(2) dd { margin-top: 23.2px; }
.hours dl > div:nth-child(3) dt,
.hours dl > div:nth-child(3) dd { margin-top: 16.2px; }

.map { height: 332px; margin-top: -2px; }
.map__canvas {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 297px;
  background: #f0f5f7;
}
.map__canvas iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Mappa con lo stile del sito Wix (MapLibre): controlli e puntatore come Google Maps */
.map__view { position: absolute; inset: 0; background: #f0f5f7; z-index: 0; }
.map__view iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__view .maplibregl-canvas:focus-visible { outline: 2px solid #1a73e8; outline-offset: -2px; }
.map-pin { cursor: pointer; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.map-pin svg { display: block; }
.map-pin:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.map__view .maplibregl-ctrl-bottom-right { right: 10px; bottom: 22px; }
.map__view .maplibregl-ctrl-group {
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, .3) 0 1px 4px -1px;
}
.map__view .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.map__view .maplibregl-ctrl-group button + button { border-top: 1px solid #e6e6e6; }
.map__view .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.map__view .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { opacity: .65; }
.map__view .maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon { opacity: 1; }
.map__view .maplibregl-ctrl-attrib {
  font-family: Roboto, Arial, sans-serif; font-size: 10px; line-height: 14px;
  padding: 0 6px; background: rgba(245, 245, 245, .7); color: #444;
}
.map__view .maplibregl-ctrl-attrib a { color: #444; }
.map__view .maplibregl-popup-content {
  padding: 12px 28px 12px 14px; border-radius: 8px;
  box-shadow: 0 2px 7px 1px rgba(0, 0, 0, .3);
}
.map__view .maplibregl-popup-close-button { font-size: 18px; width: 24px; height: 24px; color: #666; }
.map__view .maplibregl-cooperative-gesture-screen { font-family: Roboto, Arial, sans-serif; font-size: 18px; }
/* pulsante "Come arrivare" sopra la mappa, nello stile dei pulsanti del sito */
.map__directions {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  height: 36px; padding: 0 18px;
  font-family: var(--f-body); font-size: 16px; font-weight: 400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.map__directions:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
/* finestra informativa del puntatore (come su Google Maps) */
.map-info { font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 1.5; color: #333; }
.map-info a { color: #1a73e8; }
.map-info a:hover { text-decoration: underline; }

/* =====================================================================
   Barra azioni rapide (solo mobile)
   ===================================================================== */
.quick-actions { display: none; }

/* =====================================================================
   Desktop stretto (751px – 1009px): mantiene il layout scalando i blocchi
   ===================================================================== */
@media (max-width: 1009px) and (min-width: 751px) {
  .container { padding: 0 15px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 18px; }
  .card { height: auto; aspect-ratio: 317 / 250; }
  .tr-modal__media { flex-basis: 46%; }
  .tr-modal__content { flex: 1; width: auto; margin-right: 20px; }
  .partners__logos { left: auto; right: 15px; }
  .promo__overlay { padding: 0 15px; }
  .about__img { width: 50%; }
  .about blockquote { flex: 1; margin-left: 5%; margin-right: 15px; }
  /* squadra: le card crescono con il testo invece di avere un'altezza fissa */
  .team { height: auto; padding: 74px 15px 60px; }
  .team h2, .team__rule, .team__list { position: static; }
  .team__rule { width: 30px; margin: 13px auto 47px; transform: none; }
  .team__list { width: auto; gap: 30px; justify-content: center; transform: none; }
  .member { flex: 1; width: auto; max-width: 403px; height: auto; padding-bottom: 36px; }
  .member img { width: 100%; }
  .contact-form { left: auto; right: 0; }
  .hours dl { left: auto; right: 80px; }
  .structure { height: 500px; }
  .slider { height: 420px; }
  .slider__item { flex-basis: calc((100% - 10px) / 2); height: 410px; }
  .payments { right: 15px; }
  .copyright { left: 15px; }
}

/* Barra social: sotto i 1100px di larghezza non c'è spazio ai lati del contenuto,
   quindi passa nell'angolo in alto a destra dell'intestazione invece di coprire la pagina */
@media (max-width: 1100px) and (min-width: 751px) {
  .social-bar {
    position: absolute;
    top: 24px;
    right: 24px;
    margin-top: 0;
    transform: none;
    flex-direction: row;
  }
}

/* =====================================================================
   MOBILE (<= 750px) — ricalca il layout mobile del sito Wix
   ===================================================================== */
@media (max-width: 750px) {
  .social-bar { display: none; }

  /* Header */
  .site-header { height: 113px; }
  .logo { top: 10px; width: 184px; height: 88px; }
  .main-nav { display: none; }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 8px;
    width: 50px;
    height: 50px;
    border: 0;
    padding: 0;
    background: transparent;
    z-index: 1001;
  }
  .menu-toggle span {
    position: absolute;
    left: 13px;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: transform .3s ease, opacity .3s ease, top .3s ease;
  }
  .menu-toggle span:nth-child(1) { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 24px; }
  .menu-toggle span:nth-child(3) { top: 31px; }
  .menu-toggle[aria-expanded="true"] { position: fixed; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

  .title-xl { font-size: 32px; }
  .title-l  { font-size: 28px; line-height: 39.2px; }
  .title-m  { font-size: 30px; line-height: 42px; }

  /* Footer */
  .site-footer { height: 137px; }
  .payments { top: 43px; left: 20px; right: 20px; width: auto; height: 47px; }
  .copyright { top: 102px; left: 20px; }

  /* Home */
  .home-hero { height: 553px; }
  .torn { height: 30px; background-size: 610px 100%; }
  .welcome-box {
    top: 73px;
    width: calc(100% - 30px);
    height: 417px;
  }
  .welcome-box h1 { top: 29px; font-size: 28px; }
  .welcome-box p { top: 92px; width: 220px; font-size: 14px; line-height: 25.2px; }
  .welcome-box .btn { top: 341px; width: 170px; height: 42px; }

  .promo { height: 288px; }
  .promo__stage { top: 20px; height: 265px; }
  .promo__overlay { max-width: none; }
  .promo__shape { left: -117px; width: 332px; height: 265px; }
  .promo__title { left: 15px; top: 12px; width: 114px; font-size: 20px; white-space: normal; line-height: 25px; }
  .promo__text { left: 15px; top: 66px; width: 146px; font-size: 9.5px; line-height: 13.3px; }
  .promo__old { left: 15px; top: 157px; font-size: 10px; }
  .promo__strike { left: 12px; top: 163px; width: 50px; border-top-width: 1px; }
  .promo__new { left: 20px; top: 174px; font-size: 22px; }
  .promo__cta { left: 13px; top: 212px; width: 91px; height: 26px; font-size: 10px; }
  .promo__badge { left: auto; right: 17px; top: 162px; width: 85px; height: 85px; }
  .promo__pct { left: auto; right: 17px; top: 186px; width: 85px; font-size: 20px; }
  .promo__off { left: auto; right: 17px; top: 208px; width: 85px; font-size: 9px; }

  .services { height: 583px; }
  .services__icon { top: 32px; width: 60px; height: 50px; }
  .services h2 { top: 94px; padding: 0 30px; }
  .tiles { top: 184px; height: auto; flex-direction: column; }
  .tile { flex: none; height: 140px; }
  .tile span { position: relative; top: auto; font-size: 17px; }
  .services .btn { top: 493px; width: 132px; height: 37px; font-size: 15px; }

  .partners { height: 305px; }
  .partners h2 { left: 0; right: 0; top: 19px; text-align: center; }
  .partners__logos {
    top: 83px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 90px 90px;
    gap: 15px 17px;
  }
  .partners__logos img { width: 90px; height: 90px; margin: 0 !important; }

  /* Trattamenti */
  .tr-hero { height: 563px; }
  .tr-hero__img { height: 200px; }
  .tr-hero__box { top: 200px; height: 363px; }
  .tr-hero__box h1 { top: 60px; }
  .tr-hero__box p { top: 121px; width: calc(100% - 40px); }
  .tr-list { padding: 15px 15px 0; }
  .tags { gap: 6px; }
  .tag span { height: 32px; line-height: 30px; padding: 0 14px; font-size: 8.5px; }
  .cards {
    grid-template-columns: 1fr;
    row-gap: 14px;
    margin-top: 15px;
    padding-bottom: 15px;
  }
  /* card proporzionate come su desktop (317x250), non più basse */
  .card { height: auto; aspect-ratio: 317 / 250; }
  .card__ribbon { right: -3px; top: 10px; min-width: 100px; height: 30px; padding: 0 11px 0 17px; }
  .card__ribbon span { font-size: 11.5px; line-height: 30px; }
  .card__bar { height: 52px; padding: 12px 15px; }
  .card__bar h2 { font-size: 18px; line-height: 25.2px; }
  .card__more { display: none; }
  .card { cursor: pointer; }

  /* finestra del trattamento: scheda centrata con bordi arrotondati, alta quanto serve */
  .tr-modal__box {
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: 480px;
    height: auto;
    max-height: calc(100% - 32px);
  }
  /* immagine della finestra: altezza sempre uguale, a tutta larghezza, ritagliata al centro-alto */
  .tr-modal__media { flex: 0 0 auto; height: 220px; }
  .tr-modal__media.is-empty { height: 70px; }
  .tr-modal__content { width: auto; margin: 22px 18px 24px; flex: 0 1 auto; }
  .tr-modal__content h2 { font-size: 24px; }

  /* Banner pagine interne */
  .page-banner { height: 230px; }
  .page-banner .icon { top: 40px; width: 60px; }
  .page-banner h1 { top: 106px; }
  .page-banner .rule { top: 170px; width: 180px; }

  /* Chi siamo */
  .about { height: auto; }
  .about .container { flex-direction: column; }
  .about__img { width: 100%; height: 400px; }
  .about blockquote { width: auto; margin: 40px 20px 50px; font-size: 18px; }

  .team { height: auto; padding: 50px 0 40px; }
  .team h2, .team__rule, .team__list { position: static; }
  .team__rule { width: 30px; margin: 20px auto 30px; transform: none; }
  .team__list { flex-direction: column; align-items: center; gap: 20px; transform: none; padding: 0 15px; }
  .member { width: 100%; max-width: 403px; height: auto; padding-bottom: 30px; }
  .member img { width: 100%; height: 300px; }
  .member__body { padding: 30px 20px 0; }

  .structure-title { height: 120px; }
  .structure-title h2 { top: 40px; padding: 0 20px; }
  .structure { height: 400px; }
  .slider { top: 10px; height: 370px; }
  .slider__track { padding: 5px 0; gap: 0; }
  .slider__item { flex-basis: 100%; height: 360px; }
  .slider__nav--prev { left: 10px; }
  .slider__nav--next { right: 10px; }
  .viewer__img { width: calc(100vw - 16px); height: calc(100vh - 170px); }
  .viewer__nav { top: auto; bottom: 20px; margin-top: 0; }
  .viewer__count { bottom: 36px; }

  /* Contatti */
  .contact { height: auto; padding: 40px 20px; }
  .contact .container { height: auto; }
  .contact-info { position: relative; inset: auto; width: auto; height: 300px; }
  .ci-icon--pin { left: 2px; top: 3px; }
  .ci-icon--phone { left: 0; top: 100px; }
  .ci-icon--mail { left: 0; top: 181px; }
  .ci-icon--share { left: 2px; top: 256px; }
  .ci-text { left: 50px; }
  .ci-text--address { top: -1px; }
  .ci-text--phone { top: 96px; }
  .ci-text--mail { top: 173px; }
  .ci-social { left: 48px; top: 258px; }
  .contact-form {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 20px 0 0;
    grid-template-columns: 1fr;
  }
  .form-foot { margin-top: 0; flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .contact-form .btn { width: 100%; height: 42px; }
  .form-success { text-align: center; }

  .hours { height: auto; padding: 40px 20px; }
  .hours h2, .hours dl { position: static; }
  .hours h2 { text-align: center; margin-bottom: 24px; }
  .hours dl { grid-template-columns: 1fr auto; row-gap: 10px; }

  .map { height: 300px; }
  .map__canvas { top: 0; height: 300px; }

  /* Menu social flottante: colori e caratteri del sito */
  .quick-actions {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 800;
  }
  .qa-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--burgundy);
    box-shadow: 0 4px 14px rgba(123, 47, 71, .45);
    color: var(--white);
    padding: 0;
    transition: background-color .25s ease, transform .25s ease;
  }
  .qa-toggle:active { transform: scale(.94); }
  .qa-toggle:focus-visible { outline: 3px solid var(--badge); outline-offset: 3px; }
  .qa-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity .25s ease, transform .3s ease;
  }
  .qa-toggle__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
  .quick-actions.is-open .qa-toggle { background: #5e2336; }
  .quick-actions.is-open .qa-toggle__open { opacity: 0; transform: rotate(90deg) scale(.6); }
  .quick-actions.is-open .qa-toggle__close { opacity: 1; transform: none; }

  .qa-list {
    position: absolute;
    right: 3px;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    visibility: hidden;
    transition: visibility 0s linear .3s;
  }
  .quick-actions.is-open .qa-list { visibility: visible; transition-delay: 0s; }
  .qa-list li {
    opacity: 0;
    transform: translateY(12px) scale(.9);
    transition: opacity .25s ease, transform .25s ease;
  }
  .quick-actions.is-open .qa-list li { opacity: 1; transform: none; }
  .quick-actions.is-open .qa-list li:nth-child(1) { transition-delay: .06s; }
  .qa-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--burgundy);
  }
  .qa-list .qa-label {
    background: var(--white);
    padding: 7px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(123, 47, 71, .18);
    letter-spacing: .02em;
  }
  .qa-list .qa-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--burgundy);
    border: 1px solid rgba(123, 47, 71, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(123, 47, 71, .25);
    transition: background-color .2s ease, color .2s ease;
  }
  .qa-list a:hover .qa-icon, .qa-list a:focus-visible .qa-icon { background: var(--burgundy); color: var(--white); }
  .qa-list a:focus-visible { outline: none; }
  .qa-list a:focus-visible .qa-label { outline: 2px solid var(--burgundy); outline-offset: 2px; }
  .qa-icon svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

address { font-style: normal; }

}

/* Contenuti caricati dinamicamente */
.promo.is-loading .promo__overlay,
.promo.is-loading .slideshow__arrow { visibility: hidden; }
.slideshow__slides { position: absolute; inset: 0; }
.slideshow__arrow[hidden] { display: none; }
.cards__message {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  font-size: 18px;
}

/* Pagina 404 */
.not-found { padding: 110px 20px 130px; text-align: center; }
.not-found__code { font-family: var(--f-title); font-size: 96px; line-height: 1; color: var(--burgundy); }
.not-found h1 { margin: 10px 0 14px; }
.not-found__text { font-size: 18px; margin-bottom: 34px; }
.not-found .btn { width: 180px; height: 44px; font-size: 16px; }

/* a menu aperto l'intestazione (con la X di chiusura) sta sopra la lista delle voci */
.menu-open .site-header { z-index: 950; background: transparent; pointer-events: none; }
.menu-open .menu-toggle { pointer-events: auto; }
.menu-open .site-header .logo { visibility: hidden; }

/* =====================================================================
   RESPONSIVE FLUIDO (<= 750px)
   Il layout mobile Wix era disegnato per 320px con misure fisse: sugli schermi
   da 360 a 750px lasciava riquadri grandi e vuoti. Qui i blocchi seguono il contenuto.
   ===================================================================== */
@media (max-width: 750px) {
  /* --- Home: riquadro "Benvenuti" --- */
  .home-hero { height: auto; padding: 72px 15px 76px; }
  .welcome-box {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    padding: 30px 26px 34px;
  }
  .welcome-box h1, .welcome-box p, .welcome-box .btn { position: static; transform: none; }
  .welcome-box h1 { margin-bottom: 18px; }
  .welcome-box p { width: auto; max-width: 440px; margin: 0 auto 26px; font-size: 15px; line-height: 1.75; }
  .welcome-box .btn { width: auto; min-width: 170px; padding: 0 24px; }

  /* --- Home: promozioni (immagine sopra, testo leggibile sotto) --- */
  .promo { height: auto; padding-top: 20px; }
  .promo__stage { position: relative; top: auto; height: auto; overflow: visible; }
  /* immagine più bassa (circa -30%) per dare più spazio al testo della promozione */
  .slideshow { position: relative; inset: auto; height: clamp(155px, 44vw, 300px); }
  .promo__overlay {
    position: relative;
    inset: auto;
    max-width: none;
    margin: 0;
    padding: 24px 20px 28px;
    background: var(--burgundy);
    pointer-events: auto;
  }
  .promo__overlay > * { position: static; }
  .promo__shape, .promo__strike { display: none; }
  .promo__title {
    width: auto;
    padding-right: 112px;
    font-size: clamp(24px, 6.4vw, 34px);
    line-height: 1.15;
    white-space: normal;
    margin-bottom: 12px;
  }
  .promo__text { width: auto; max-width: 560px; font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
  .promo__old { font-size: 16px; }
  .promo__old-value { text-decoration: line-through; text-decoration-thickness: 2px; }
  .promo__new { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; margin-bottom: 18px; }
  .promo__cta { display: inline-flex; width: auto; height: 42px; padding: 0 26px; font-size: 15px; }
  /* bollino dello sconto a cavallo tra immagine e testo */
  .promo__badge, .promo__pct, .promo__off { position: absolute; right: 16px; width: 100px; left: auto; }
  .promo__badge { top: -46px; height: 100px; }
  .promo__pct { top: -20px; font-size: 26px; }
  .promo__off { top: 10px; font-size: 10px; }

  /* --- Home: riquadri dei servizi e partner --- */
  .tile { height: clamp(140px, 30vw, 208px); }
  .partners { height: auto; padding: 24px 15px 44px; }
  .partners h2, .partners__logos { position: static; transform: none; }
  .partners h2 { margin-bottom: 22px; }
  .partners__logos { justify-content: center; margin: 0 auto; width: max-content; }

  /* --- Trattamenti: riquadro del titolo --- */
  .tr-hero { height: auto; }
  .tr-hero__img { position: static; display: block; height: clamp(200px, 42vw, 300px); }
  .tr-hero__box { position: relative; top: auto; height: auto; padding: 46px 20px 50px; }
  .tr-hero__box h1, .tr-hero__box p { position: static; left: auto; transform: none; }
  .tr-hero__box p { width: auto; max-width: 600px; margin: 18px auto 0; line-height: 1.55; }

  /* --- Contatti: elenco compatto icona + testo --- */
  .contact-info {
    height: auto;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 22px 16px;
  }
  .contact-info .ci-icon, .ci-text, .ci-social { position: static; }
  .contact-info .ci-icon { justify-self: center; }
  .ci-text { line-height: 1.6; }
  .contact-form { padding-top: 34px; }
}

/* Smartphone grandi e in orizzontale (480–750px): partner tutti in fila */
@media (min-width: 480px) and (max-width: 750px) {
  /* 4 loghi in fila che si restringono se lo spazio non basta (max 104px ciascuno) */
  .partners__logos { width: 100%; max-width: 464px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .partners__logos img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
/* Da 600px: la squadra su due colonne invece di due card strette e lunghe */
@media (min-width: 600px) and (max-width: 750px) {
  .team__list { flex-direction: row; align-items: stretch; max-width: 760px; margin: 0 auto; }
  .member { flex: 1; }
  .member img { height: 260px; }
}
/* Da 520px le card dei trattamenti vanno su due colonne (in una sola diventerebbero enormi) */
@media (min-width: 520px) and (max-width: 750px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .card__bar h2 { font-size: 16px; }
}
/* Orari su schermi stretti: tabella compatta e centrata, non ai due bordi */
@media (max-width: 750px) {
  .hours dl { max-width: 380px; margin: 0 auto; }
}
/* Home, "Servizi e trattamenti" su schermi stretti: la sezione segue il contenuto,
   così il pulsante "Scopri di più" sta sempre sotto i riquadri (che crescono con la larghezza) */
@media (max-width: 750px) {
  .services { height: auto; padding: 32px 0 44px; }
  .services__icon, .services h2, .tiles, .services .btn { position: static; transform: none; }
  .services__icon { margin: 0 auto; }
  .services h2 { margin: 12px 0 26px; }
  .services .btn { display: inline-flex; margin-top: 30px; }
}

/* Smartphone in orizzontale (schermo basso): nella finestra del trattamento foto e testo
   affiancati, come su computer, così il testo ha spazio */
@media (max-width: 750px) and (max-height: 500px) and (orientation: landscape) {
  .tr-modal__box { flex-direction: row; max-width: 720px; }
  .tr-modal__media { flex: 0 0 40%; height: auto; }
  .tr-modal__content { flex: 1 1 auto; margin: 18px 18px 18px 20px; }
  .tr-modal__content h2 { font-size: 20px; margin-bottom: 12px; }
  .tr-modal__book { margin-top: 14px; }
}

/* Banner promozioni su smartphone: frecce visibili e "Contattaci" accanto al prezzo */
@media (max-width: 750px) {
  /* frecce: stesso stile, solo un po' più piccole e vicine al bordo */
  .slideshow__arrow { width: 40px; height: 40px; margin-top: -20px; background-size: 18px 18px; }
  .slideshow__arrow--prev { left: 10px; }
  .slideshow__arrow--next { right: 10px; }

  /* prezzi a sinistra, "Contattaci" a destra allineato al prezzo scontato */
  .promo__overlay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: end;
  }
  .promo__title, .promo__text { grid-column: 1 / -1; }
  .promo__old { grid-column: 1; grid-row: 3; }
  .promo__new { grid-column: 1; grid-row: 4; margin-bottom: 0; white-space: nowrap; }
  .promo__cta { grid-column: 2; grid-row: 3 / 5; align-self: end; margin-bottom: 6px; padding: 0 20px; white-space: nowrap; }
}
