/* Stili che su Squarespace arrivano dal JavaScript della piattaforma o dal suo
   motore dei form. Valori presi dagli stili calcolati del sito originale. */

/* --- Form (identici ai form "site style" originali) --- */
.oz-form { margin: 0; text-align: left; }
.oz-form .oz-item { margin: 0 0 18px; padding: 0; border: 0; font-family: europa, sans-serif; font-size: 18px; font-weight: 300; letter-spacing: .5px; color: #1f1f1f; }
.oz-form label, .oz-form legend { display: block; font: inherit; margin: 0 0 6px; padding: 0; }
.oz-form .oz-req { font-size: 12px; margin-left: 4px; }
.oz-form .oz-desc { font-size: 14px; margin: 0 0 6px; opacity: .8; }
.oz-form input[type="text"], .oz-form input[type="email"], .oz-form input[type="tel"], .oz-form textarea, .oz-form select {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 10px;
  font-family: europa, sans-serif; font-size: 18px; font-weight: 400; color: #000;
  background: #fafafa; border: 1px solid #a9a9a9; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.oz-form input, .oz-form select { height: 45px; }
.oz-form textarea { min-height: 110px; resize: vertical; }
.oz-form select {
  padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.oz-form input:focus, .oz-form textarea:focus, .oz-form select:focus { outline: 1px solid #1f1f1f; outline-offset: 0; }
.oz-form .oz-option { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; cursor: pointer; font-size: 16px; line-height: 1.4; }
.oz-form .oz-option input { margin-top: 4px; flex: 0 0 auto; width: 16px; height: 16px; }
.oz-form .oz-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oz-form .oz-name-row label { font-size: 14px; }
.oz-form .oz-name-row input { margin-top: 4px; }
.oz-form .oz-submit {
  font-family: futura-pt, sans-serif; font-size: 18px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; background: #1f1f1f; border: 0; border-radius: 0; padding: 18px 45px; cursor: pointer; line-height: normal;
}
.oz-form .oz-submit:hover { opacity: .8; }
.oz-form .oz-submit:disabled { opacity: .6; cursor: default; }
.oz-form .oz-invalid input, .oz-form .oz-invalid textarea, .oz-form .oz-invalid select { border-color: #c0392b; }
.oz-form .oz-field-error, .oz-form .oz-error { color: #c0392b; font-size: 15px; margin: 6px 0 0; }
.oz-form .oz-error { margin-top: 14px; }
.oz-form .oz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oz-success { font-family: europa, sans-serif; font-size: 18px; padding: 10px 0; }
@media (max-width: 600px) { .oz-form .oz-name-row { grid-template-columns: 1fr; } }

/* --- Video (su Squarespace li monta il JS dal data-html) --- */
.embed-block-wrapper { position: relative; }
.embed-block-wrapper:not([style*="padding-bottom"]) { aspect-ratio: 16 / 9; }
.sqs-video-wrapper.oz-video { position: absolute; inset: 0; }
.sqs-video-wrapper.oz-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

/* --- Mappe --- */
.oz-map { position: relative; width: 100%; height: 0; overflow: hidden; }
.oz-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Foto di sfondo "content-fill" (banner in alto, sezioni): su Squarespace le
       ridimensiona il JS in modalita' cover, con il punto focale come ancoraggio --- */
.content-fill { overflow: hidden; }
.content-fill img { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }

/* --- Didascalie sopra le immagini (image block "overlap"): Squarespace calcola la
       dimensione del testo via JS; il risultato e' costante in pixel, lo fissiamo --- */
#block-yui_3_17_2_1_1553167717788_13069 .sqs-dynamic-text,
#block-yui_3_17_2_1_1553167717788_14210 .sqs-dynamic-text { font-size: 29px !important; }
#block-yui_3_17_2_1_1560865987772_22084 .sqs-dynamic-text,
#block-yui_3_17_2_1_1560865987772_24923 .sqs-dynamic-text,
#block-yui_3_17_2_1_1560865987772_30452 .sqs-dynamic-text,
#block-yui_3_17_2_1_1560865987772_34157 .sqs-dynamic-text { font-size: 22px !important; }

/* Su mobile Squarespace impila l'image block "overlap": foto a tutta larghezza e
   didascalia che si sovrappone al bordo basso (misurato sul sito originale a 390px). */
@media (max-width: 767px) {
  .image-block-v2.design-layout-overlap { display: block !important; }
  .image-block-v2.design-layout-overlap .intrinsic { width: 100% !important; max-width: 100% !important; }
  .image-block-v2.design-layout-overlap .intrinsic img { width: 100% !important; height: auto !important; }
  .image-block-v2.design-layout-overlap .intrinsic a,
  .image-block-v2.design-layout-overlap .sqs-image-shape-container-element { width: 100% !important; }
  .image-block-v2.design-layout-overlap .image-card-wrapper { display: block !important; width: 100% !important; margin-top: -36px; padding-left: 14px; box-sizing: border-box; }
  .image-block-v2.design-layout-overlap .image-card { margin-left: 0 !important; width: auto !important; }
  .image-block-v2.design-layout-overlap .image-title-wrapper { margin-left: 0 !important; width: auto !important; }
}

/* --- Barra informativa mobile (Mobile Information Bar di Squarespace, stile scuro) --- */
.oz-info-bar { display: none; }
@media (max-width: 767px) {
  .oz-info-bar {
    display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
    height: 64px; padding: 0 20px; box-sizing: border-box; background: #222;
    transition: transform .2s cubic-bezier(.23, .47, .32, 1);
  }
  .oz-info-bar.oz-info-bar-hide { transform: translateY(100%); }
  .mobile-nav-open .oz-info-bar { display: none; }
  .oz-info-bar a { display: block; width: 87.5px; padding: 15px 0; text-align: center; text-decoration: none; }
  .oz-info-icon { display: block; width: 16px; height: 16px; margin: 0 auto 8px; background: center / contain no-repeat; }
  .oz-info-email { background-image: url('/universal/images-v6/mobile-info-bar/email-light.png'); }
  .oz-info-call { background-image: url('/universal/images-v6/mobile-info-bar/call-light.png'); }
  .oz-info-map { background-image: url('/universal/images-v6/mobile-info-bar/map-light.png'); }
  .oz-info-label { display: block; font: 10px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
}

/* --- Blocchi "summary" (elenchi di articoli: News-Articoli e notizie in home).
       Su Squarespace l'impaginazione la calcola il JS; valori misurati sul sito originale. --- */
.sqs-block-summary-v2 .summary-item-list::after { content: ""; display: table; clear: both; }
.sqs-block-summary-v2 .summary-thumbnail { position: relative; padding-bottom: 66.6667%; overflow: hidden; }
.sqs-block-summary-v2 .summary-thumbnail img { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
/* design "list": foto 30% a sinistra, testo 70% */
.sqs-gallery-design-list-slide .summary-thumbnail-outer-container { width: 30%; }
.sqs-gallery-design-list-slide .summary-content { width: 70%; }
/* design "autogrid": 3 colonne su desktop, 1 su mobile */
.summary-item.sqs-gallery-design-autogrid-slide { float: left; width: 29.4118%; margin-right: 5.88235%; margin-bottom: 5.88235%; }
.summary-item.sqs-gallery-design-autogrid-slide:nth-child(3n) { margin-right: 0; }
.summary-item.sqs-gallery-design-autogrid-slide:nth-child(3n+1) { clear: left; }
@media (max-width: 767px) {
  .summary-item.sqs-gallery-design-autogrid-slide { width: 100%; margin-right: 0; margin-bottom: 17.1429%; clear: left; }
}
/* nell'elenco News-Articoli il sito originale non mostra "Read more" (in home si') */
.summary-block-setting-design-list .summary-read-more-link { display: none !important; }
.oz-form .oz-wa-fallback { display: inline-block; margin-top: 10px; padding: 12px 22px; background: #25d366; color: #fff !important; font-family: europa, sans-serif; font-size: 16px; text-decoration: none; border-radius: 3px; }

/* --- Video caricati su Squarespace, ora mp4 su Cloudinary --- */
.oz-native-video { position: relative; width: 100%; background: #000; }
.oz-native-video video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* --- Mobile: quando il form e' a schermo, via il badge recensioni flottante (copriva la riga privacy) --- */
@media (max-width: 767px) {
  body.oz-form-in-view [class*="elfsight-app-f0d4cfbb"] { display: none !important; }
}

/* --- Hub del centro estetico (/beauty, src/data/beauty-hub.html) ---
   Colonna centrata come il resto della pagina, misura leggibile, link riconoscibili e con
   contrasto pieno (il grigio al 50% del tema scende a ~3,3:1 su bianco). Vale solo qui. */
.oz-beauty-hub { max-width: 42rem; margin: 3.5rem auto 4.5rem; text-align: left; }
.oz-beauty-hub > h2,
.oz-beauty-hub > p { text-align: center; }
.oz-beauty-hub > h2 { margin: 0 0 1rem; }
.oz-beauty-hub > p { margin: 0 auto; max-width: 36rem; }
.oz-beauty-hub > p:last-child { margin-top: 2.5rem; }
.oz-beauty-hub h3 { margin: 2.5rem 0 .9rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(31, 31, 31, .12); }
.oz-beauty-hub ul { list-style: none; margin: 0; padding: 0; }
.oz-beauty-hub li { margin: 0 0 .7rem; line-height: 1.55; }
.oz-beauty-hub li:last-child { margin-bottom: 0; }
/* Specificita' alta di proposito: il tema ha regole come ".sqs-block-html a:not(.sqs-block-button-element):visited". */
.sqs-html-content .oz-beauty-hub a:not(.sqs-block-button-element):is(:link, :visited) { color: rgb(31, 31, 31); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(31, 31, 31, .35);
  transition: text-decoration-color .15s ease-out; }
.sqs-html-content .oz-beauty-hub a:not(.sqs-block-button-element):is(:link, :visited):hover { text-decoration-color: rgb(31, 31, 31); }
.oz-beauty-hub a:focus-visible { outline: 2px solid rgb(31, 31, 31); outline-offset: 3px; border-radius: 2px; }
/* Griglia schede di /beauty: con un numero dispari di schede l'ultima resta sola e va al centro.
   Sotto i 640px il tema impila le colonne a tutta larghezza, quindi niente spostamento. */
@media only screen and (min-width: 641px) { .oz-col-centro { margin-left: 25%; } }

/* --- Popup prenotazione Treatwell (oz.js). Desktop: scheda in basso a destra.
       Mobile: foglio in basso sopra la barra informativa, mai a tutto schermo. --- */
.oz-tw { position: fixed; right: 24px; bottom: 24px; z-index: 10001; width: 340px; overflow: hidden;
  background: #fffdf9; color: #1f1f1f; border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  font-family: 'futura-pt', sans-serif; opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.oz-tw.oz-tw-open { opacity: 1; transform: none; pointer-events: auto; }
.oz-tw-img { display: block; width: 100%; height: 170px; object-fit: cover; }
.oz-tw-body { padding: 18px 22px 16px; text-align: left; }
.oz-tw p { margin: 0; }
.oz-tw-kicker { font-size: 11px !important; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #7a6639; }
.oz-tw-title { margin-top: 6px !important; font-size: 23px !important; line-height: 1.15 !important; font-weight: 500; }
.oz-tw-text { margin-top: 8px !important; font-size: 16px !important; line-height: 1.4 !important; color: #5f594f; }
.oz-tw-cta { display: block; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #1f1f1f; color: #fff !important;
  text-align: center; font-size: 17px; font-weight: 500; letter-spacing: .02em; text-decoration: none !important; transition: background .15s; }
.oz-tw-cta:hover { background: #7a6639; }
.oz-tw-later { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 0; background: none; color: #5f594f;
  font: inherit; font-size: 15px; cursor: pointer; }
.oz-tw-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 253, 249, .92); color: #1f1f1f; font-size: 22px; line-height: 34px; text-align: center; cursor: pointer; padding: 0; }
.oz-tw-cta:focus-visible, .oz-tw-later:focus-visible, .oz-tw-x:focus-visible { outline: 2px solid #7a6639; outline-offset: 2px; }
@media (max-width: 767px) {
  .oz-tw { left: 12px; right: 12px; bottom: 76px; width: auto; display: grid; grid-template-columns: 96px 1fr; border-radius: 14px; }
  .oz-tw-img { height: 100%; min-height: 150px; }
  .oz-tw-body { padding: 14px 16px 10px; }
  .oz-tw-title { font-size: 19px !important; padding-right: 22px; }
  .oz-tw-text { font-size: 14px !important; }
  .oz-tw-cta { margin-top: 12px; padding: 12px 14px; font-size: 16px; }
  .oz-tw-later { padding: 8px; font-size: 14px; }
  .oz-tw-x { top: 6px; right: 6px; width: 30px; height: 30px; line-height: 30px; background: none; }
  .mobile-nav-open .oz-tw { display: none; }
  /* il badge recensioni Endorsal (in basso a sinistra) finiva sopra l'angolo del popup */
  body.oz-tw-shown #NDRSL-reviewhq_btn { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .oz-tw { transition: none; } }
